sgs_Push*** [functions]
SGSONE sgs_PushNull( sgs_Context* C )
SGSONE sgs_PushNulls( sgs_Context* C, int count )
SGSONE sgs_PushBool( sgs_Context* C, sgs_Bool value )
SGSONE sgs_PushInt( sgs_Context* C, sgs_Int value )
SGSONE sgs_PushReal( sgs_Context* C, sgs_Real value )
SGSONE sgs_PushStringBuf( sgs_Context* C, const char* str, sgs_SizeVal size )
SGSONE sgs_PushString( sgs_Context* C, const char* str )
SGSONE sgs_PushCFunc( sgs_Context* C, sgs_CFunc func )
SGSONE sgs_PushObject( sgs_Context* C, void* data, sgs_ObjInterface* iface )
void* sgs_PushObjectIPA( sgs_Context* C, sgs_SizeVal added, sgs_ObjInterface* iface )
SGSONE sgs_PushPtr( sgs_Context* C, void* ptr )
SGSONE sgs_PushObjectPtr( sgs_Context* C, sgs_VarObj* obj )
SGSONE sgs_PushVariable( sgs_Context* C, sgs_Variable* var )
Pushes the data on the stack, as a new entry, appended to the end.
To push objects, use sgs_Create*** functions.
To allocate an uninitialized string buffer, use sgs_PushStringAlloc.
- sgs_Bool is transformed to 0/1 before pushing, everything else is unchanged.
- sgs_PushVariable will increment the reference count of strings, SGS functions and objects.
- Most functions here always return 1 (SGSONE), making them suitable for a "return sgs_Push***" construct.