sgs_EvalString [function alias]
SGSRESULT sgs_EvalString( sgs_Context* C, const char* str )
Compiles and executes a string of text, leaving the return values on stack and returning their count.
- To ignore return values, use sgs_ExecString.
- Alias to
sgs_EvalBuffer( C, str, SGS_STRINGLENGTHFUNC( str ) )
.
Error codes:
- SGS_ECOMP: compiler error
- SGS_EINVAL: passed data was not recognized