sgs_OptStackItem [function]
sgs_Variable sgs_OptStackItem( sgs_Context* C, sgs_StkIdx item )
Returns a non-owned copy of a variable on stack or null if the index is invalid.
- See sgs_StackItem for details on behavior, only difference is that
null
is returned when an invalid stack index is passed. - This function is useful for the implementation of "Parse"/"ArgCheck" functions which are required never to throw errors by convention.