sgs_ExecBuffer [function alias]
SGSRESULT sgs_ExecBuffer( sgs_Context* C, const char* buf, sgs_SizeVal size )
Compiles and executes a buffer of text or bytecode.
- Leaves the stack the same as it was before the call.
- Alias to
sgs_AdjustStack( C, 0, sgs_EvalBuffer( C, buf, sz ) )
.
Error codes:
- SGS_ECOMP: compiler error
- SGS_EINVAL: passed data was not recognized