sgs_ExecString [function alias]
SGSRESULT sgs_ExecString( sgs_Context* C, const char* str )
Compiles and executes a string of text.
- Leaves the stack the same as it was before the call.
- Alias to
sgs_ExecBuffer( C, str, SGS_STRINGLENGTHFUNC( str ) )
.
- Theoretically bytecode is supported but it will most probably be trimmed by the string length function, unless a different string termination mark is used, and a different string length function to detect it is set.
Error codes:
- SGS_ECOMP: compiler error
- SGS_EINVAL: passed data was not recognized