Code::Blocks
SVN r11506
|
#include "sqpcheader.h"
#include "sqvm.h"
#include "sqstring.h"
#include "sqarray.h"
#include "sqtable.h"
#include "squserdata.h"
#include "sqfuncproto.h"
#include "sqclass.h"
#include "sqclosure.h"
Go to the source code of this file.
Macros | |
#define | _CHECK_IO(exp) { if(!exp)return false; } |
#define | START_MARK() |
#define | END_MARK() |
Functions | |
const SQChar * | IdType2Name (SQObjectType type) |
const SQChar * | GetTypeName (const SQObjectPtr &obj1) |
SQUnsignedInteger | TranslateIndex (const SQObjectPtr &idx) |
bool | SafeWrite (HSQUIRRELVM v, SQWRITEFUNC write, SQUserPointer up, SQUserPointer dest, SQInteger size) |
bool | SafeRead (HSQUIRRELVM v, SQWRITEFUNC read, SQUserPointer up, SQUserPointer dest, SQInteger size) |
bool | WriteTag (HSQUIRRELVM v, SQWRITEFUNC write, SQUserPointer up, SQInteger tag) |
bool | CheckTag (HSQUIRRELVM v, SQWRITEFUNC read, SQUserPointer up, SQInteger tag) |
bool | WriteObject (HSQUIRRELVM v, SQUserPointer up, SQWRITEFUNC write, SQObjectPtr &o) |
bool | ReadObject (HSQUIRRELVM v, SQUserPointer up, SQREADFUNC read, SQObjectPtr &o) |
#define _CHECK_IO | ( | exp | ) | { if(!exp)return false; } |
Definition at line 231 of file sqobject.cpp.
Referenced by CheckTag(), ReadObject(), and WriteObject().
#define END_MARK | ( | ) |
Definition at line 488 of file sqobject.cpp.
#define START_MARK | ( | ) |
Definition at line 485 of file sqobject.cpp.
bool CheckTag | ( | HSQUIRRELVM | v, |
SQWRITEFUNC | read, | ||
SQUserPointer | up, | ||
SQInteger | tag | ||
) |
Definition at line 255 of file sqobject.cpp.
References _CHECK_IO, and SafeRead().
Referenced by ReadObject().
const SQChar* GetTypeName | ( | const SQObjectPtr & | obj1 | ) |
Definition at line 43 of file sqobject.cpp.
References IdType2Name(), and TranslateIndex().
Referenced by base_type(), cbEventFunctor< ClassType, EventType >::Call(), EditorHooks::HookFunctor< T >::Call(), DumpLiteral(), sq_stackinfos(), WriteObject(), EditorHooks::cbSmartIndentEditorHookFunctor::~cbSmartIndentEditorHookFunctor(), EditorHooks::HookFunctorBase::~HookFunctorBase(), and IFunctorBase::~IFunctorBase().
const SQChar* IdType2Name | ( | SQObjectType | type | ) |
Definition at line 15 of file sqobject.cpp.
References NULL.
Referenced by GetTypeName(), ReadObject(), sq_aux_gettypedarg(), sq_aux_invalidtype(), and sq_stackinfos().
bool ReadObject | ( | HSQUIRRELVM | v, |
SQUserPointer | up, | ||
SQREADFUNC | read, | ||
SQObjectPtr & | o | ||
) |
Definition at line 287 of file sqobject.cpp.
References _CHECK_IO, _null_, CheckTag(), IdType2Name(), SafeRead(), SafeWrite(), WriteObject(), and WriteTag().
bool SafeRead | ( | HSQUIRRELVM | v, |
SQWRITEFUNC | read, | ||
SQUserPointer | up, | ||
SQUserPointer | dest, | ||
SQInteger | size | ||
) |
Definition at line 241 of file sqobject.cpp.
Referenced by CheckTag(), and ReadObject().
bool SafeWrite | ( | HSQUIRRELVM | v, |
SQWRITEFUNC | write, | ||
SQUserPointer | up, | ||
SQUserPointer | dest, | ||
SQInteger | size | ||
) |
Definition at line 232 of file sqobject.cpp.
Referenced by ReadObject(), WriteObject(), and WriteTag().
SQUnsignedInteger TranslateIndex | ( | const SQObjectPtr & | idx | ) |
Definition at line 73 of file sqobject.cpp.
Referenced by GetTypeName().
bool WriteObject | ( | HSQUIRRELVM | v, |
SQUserPointer | up, | ||
SQWRITEFUNC | write, | ||
SQObjectPtr & | o | ||
) |
Definition at line 266 of file sqobject.cpp.
References _CHECK_IO, GetTypeName(), and SafeWrite().
Referenced by ReadObject().
bool WriteTag | ( | HSQUIRRELVM | v, |
SQWRITEFUNC | write, | ||
SQUserPointer | up, | ||
SQInteger | tag | ||
) |