sgs_Get*** [functions]
sgs_Bool sgs_GetBool( sgs_Context* C, sgs_StkIdx item )
sgs_Int sgs_GetInt( sgs_Context* C, sgs_StkIdx item )
sgs_Real sgs_GetReal( sgs_Context* C, sgs_StkIdx item )
void* sgs_GetPtr( sgs_Context* C, sgs_StkIdx item )
Return an item from the current stack frame, converted to the specified type.
sgs_Bool sgs_GetBoolP( sgs_Context* C, sgs_Variable* var )
sgs_Int sgs_GetIntP( sgs_Context* C, sgs_Variable* var )
sgs_Real sgs_GetRealP( sgs_Context* C, sgs_Variable* var )
void* sgs_GetPtrP( sgs_Context* C, sgs_Variable* var )
Return the value of the specified variable, converted to the specified type.
- If
item
is out of bounds, 0 is returned.