Stack primary interface
- sgs_PushNull - push a null variable
- sgs_PushNulls - push multiple null variables
- sgs_PushBool - push a boolean variable
- sgs_PushInt - push an integer
- sgs_PushReal - push a real value
- sgs_PushStringBuf - push a new string from char buffer
- sgs_PushString - push a new string
- sgs_PushCFunc - push a C function
- sgs_PushPtr - push a pointer
- sgs_PushObjectPtr - push an object pointer
- sgs_PushVariable - push the specified variable
- sgs_StoreVariable - retrieve, acquire and pop the topmost variable on stack
- sgs_PushItem - retrieve and push the specified variable on stack
- sgs_InsertVariable - insert a variable on stack in the specified position
- sgs_Pop - pop the specified number of items from stack
- sgs_PopSkip - pop the specified number of items from stack, skipping some topmost items
- sgs_StackSize - return the size of the current stack frame
- sgs_SetStackSize - resize the current stack frame
- sgs_SetDeltaSize - relative-resize the current stack frame
- sgs_AdjustStack - change stack size to from returned argument count to expected
- sgs_AbsIndex - convert stack index to positive if possible (if it's <0 or >=StackSize, then it's invalid)
- sgs_IsValidIndex - check if specified stack index is valid
- sgs_OptStackItem - return without acquisition the specified variable on stack without errors
- sgs_StackItem - return without acquisition the specified variable on stack
- sgs_GetStackItem - retrieve and acquire the specified variable on stack
- sgs_SetStackItem - assign variable to the specified variable on stack
- sgs_ItemType - return the variable type of the specified variable on stack
- sgs_LoadArgsExtVA - parse the stack as an argument list with additional options (for custom wrapper functions)
- sgs_LoadArgsExt - parse the stack as an argument list with additional options
- sgs_LoadArgs - parse the stack as an argument list
- sgs_ParseMethod - the
this
object variable handling function, using the macro is preferred to this - SGS_PARSE_METHOD - automagically handle a
this
object variable regardless of the way its passed - sgs_Method - unhide the first variable on stack if there is a hidden
this
variable - sgs_HideThis - hide the first variable on stack if the stack already doesn't contain a hidden
this
variable - sgs_ForceHideThis - hide the first variable even if it wasn't previously hidden before unhiding
- sgs_StoreFuncConsts - store a list of C function constants in the specified variable
- sgs_StoreIntConsts - store a list of integer constants in the specified variable
- sgs_StoreRealConsts - store a list of real value constants in the specified variable