sgs_ExecFile [function alias]
SGSRESULT sgs_ExecFile( sgs_Context* C, const char* filename )
Compiles and executes a file containing script text or bytecode.
- Leaves the stack the same as it was before the call.
- Alias to
sgs_AdjustStack( C, 0, sgs_EvalFile( C, filename ) )
.
Error codes:
- SGS_ECOMP: compiler error
- SGS_EINVAL: passed data was not recognized
- SGS_ENOTSUP: attempted to load a binary (no additional error is printed)