sgs_Init*** [functions]
void sgs_InitStringBuf( sgs_Context* C, sgs_Variable* out, const char* str, sgs_SizeVal size )
void sgs_InitString( sgs_Context* C, sgs_Variable* out, const char* str )
void sgs_InitObjectPtr( sgs_Variable* out, sgs_VarObj* obj )
void sgs_InitThreadPtr( sgs_Variable* out, sgs_Context* T )
Initialize a variable to the specified type.
- Since these are reference-counted types, they need to be released manually.
- To allocate an uninitialized string buffer, use sgs_InitStringAlloc.