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