sgs_SetGlobal [function]
SGSBOOL sgs_SetGlobal( sgs_Context* C, sgs_Variable idx, sgs_Variable val )
Set global variable idx
to val
.
- When setting
_G
(environment superglobal),val
must be ofdict
/map
type or the function will fail.