Code::Blocks  SVN r11506
Macros
SquirrelObject.cpp File Reference
#include "sqplus.h"
Include dependency graph for SquirrelObject.cpp:

Go to the source code of this file.

Macros

#define _SETVALUE_INT_BEGIN
 
#define _SETVALUE_INT_END
 
#define _SETVALUE_STR_BEGIN
 
#define _SETVALUE_STR_END
 

Macro Definition Documentation

◆ _SETVALUE_INT_BEGIN

#define _SETVALUE_INT_BEGIN
Value:
BOOL_T ret = FALSE; \
SQInteger top = sq_gettop(SquirrelVM::_VM); \
sq_pushobject(SquirrelVM::_VM,_o); \
sq_pushinteger(SquirrelVM::_VM,key);
SQInteger sq_gettop(HSQUIRRELVM v)
Definition: sqapi.cpp:664

Definition at line 138 of file SquirrelObject.cpp.

◆ _SETVALUE_INT_END

#define _SETVALUE_INT_END
Value:
if(SQ_SUCCEEDED(sq_rawset(SquirrelVM::_VM,-3))) { \
ret = TRUE; \
} \
sq_settop(SquirrelVM::_VM,top); \
return ret;
SQRESULT sq_rawset(HSQUIRRELVM v, SQInteger idx)
Definition: sqapi.cpp:742

Definition at line 144 of file SquirrelObject.cpp.

◆ _SETVALUE_STR_BEGIN

#define _SETVALUE_STR_BEGIN
Value:
BOOL_T ret = FALSE; \
SQInteger top = sq_gettop(SquirrelVM::_VM); \
sq_pushobject(SquirrelVM::_VM,_o); \
sq_pushstring(SquirrelVM::_VM,key,-1);
SQInteger sq_gettop(HSQUIRRELVM v)
Definition: sqapi.cpp:664

Definition at line 200 of file SquirrelObject.cpp.

◆ _SETVALUE_STR_END

#define _SETVALUE_STR_END
Value:
if(SQ_SUCCEEDED(sq_rawset(SquirrelVM::_VM,-3))) { \
ret = TRUE; \
} \
sq_settop(SquirrelVM::_VM,top); \
return ret;
SQRESULT sq_rawset(HSQUIRRELVM v, SQInteger idx)
Definition: sqapi.cpp:742

Definition at line 206 of file SquirrelObject.cpp.