Data retrieval & conversion
- sgs_GetBoolP - return the boolean version of the variable
- sgs_GetIntP - return the integer version of the variable
- sgs_GetRealP - return the real value version of the variable
- sgs_GetPtrP - return the pointer version of the variable
- sgs_ToBoolP - convert variable to a boolear value and return it
- sgs_ToIntP - convert variable to an integer and return it
- sgs_ToRealP - convert variable to a real value and return it
- sgs_ToPtrP - convert variable to a pointer and return it
- sgs_ToStringBufP - convert variable to a string, returning size
- sgs_ToStringP - convert variable to a string
- sgs_ToStringBufFastP - convert variable to a string, preventing possible recursion and returning size
- sgs_ToStringFastP - convert variable to a string, preventing possible recursion
- sgs_IsObjectP - check if variable is an object and has the specified interface pointer
- sgs_IsTypeP - check if variable is of specified registered type
- sgs_IsCallableP - check if variable is callable (SGS function, C function or object with CALL impl.)
- sgs_ParseBoolP - validate conversion, optionally return boolean value from variable, if possible
- sgs_ParseIntP - validate conversion, optionally return integer value from variable, if possible
- sgs_ParseRealP - validate conversion, optionally return real value from variable, if possible
- sgs_ParseStringP - validate conversion, optionally return string or buffer from variable, if possible
- sgs_ParseObjectPtrP - validate conversion, optionally return object pointer from variable, if possible
- sgs_ParsePtrP - validate conversion, optionally return pointer from variable, if possible
- sgs_ArraySize - retrieve size of array variable, if possible
- sgs_GetBool - return the boolean version of the variable on stack
- sgs_GetInt - return the integer version of the variable on stack
- sgs_GetReal - return the real value version of the variable on stack
- sgs_GetPtr - return the pointer version of the variable on stack
- sgs_ToBool - convert variable on stack to a boolear value and return it
- sgs_ToInt - convert variable on stack to an integer and return it
- sgs_ToReal - convert variable on stack to a real value and return it
- sgs_ToPtr - convert variable on stack to a pointer and return it
- sgs_ToStringBuf - convert variable on stack to a string, returning size
- sgs_ToString - convert variable on stack to a string
- sgs_ToStringBufFast - convert variable on stack to a string, preventing possible recursion and returning size
- sgs_ToStringFast - convert variable on stack to a string, preventing possible recursion
- sgs_IsObject - check if variable on stack is an object and has the specified interface pointer
- sgs_IsType - check if variable on stack is of specified registered type
- sgs_IsCallable - check if variable on stack is callable (SGS function, C function or object with CALL impl.)
- sgs_IsArray - return if variable is of
array
type
- sgs_IsDict - return if variable is of
dict
type
- sgs_IsMap - return if variable is of
map
type
- sgs_ParseBool - validate conversion, optionally return boolean value from variable on stack, if possible
- sgs_ParseInt - validate conversion, optionally return integer value from variable on stack, if possible
- sgs_ParseReal - validate conversion, optionally return real value from variable on stack, if possible
- sgs_ParseString - validate conversion, optionally return string or buffer from variable on stack, if possible
- sgs_ParseObjectPtr - validate conversion, optionally return object pointer from variable on stack, if possible
- sgs_ParsePtr - validate conversion, optionally return pointer from variable on stack, if possible
- sgs_ArraySize - retrieve size of array variable on stack, if possible
- sgs_GlobalBool - retrieve global by name as bool
- sgs_GlobalInt - retrieve global by name as integer
- sgs_GlobalReal - retrieve global by name as real
- sgs_GlobalStringBuf - retrieve global by name as string buffer
- sgs_GlobalString - retrieve global by name as string
- sgs_GetStringPtrP - get string pointer from variable pointer
- sgs_GetStringSizeP - get string size from variable pointer
- sgs_GetObjectStructP - get object pointer from variable pointer
- sgs_GetObjectDataP - get data pointer of object variable pointer
- sgs_GetObjectIfaceP - get interface pointer of object variable pointer
- sgs_SetObjectDataP - set data pointer of object variable pointer
- sgs_SetObjectIfaceP - set interface pointer of object variable pointer
- sgs_GetStringPtr - get string pointer from variable on stack
- sgs_GetStringSize - get string size from variable on stack
- sgs_GetObjectStruct - get object pointer from variable on stack
- sgs_GetObjectData - get data pointer of object variable on stack
- sgs_GetObjectIface - get interface pointer of object variable on stack
- sgs_SetObjectData - set data pointer of object variable on stack
- sgs_SetObjectIface - set interface pointer of object variable on stack
- sgs_ObjSetMetaObj - set meta-object of an object
- sgs_ObjGetMetaObj - retrieve meta-object of an object
- sgs_ObjSetMetaMethodEnable - enable or disable metamethod support for an object
- sgs_ObjGetMetaMethodEnable - check if metamethod support is enabled for an object