#include <squirrel_std.hpp>
Static Public Member Functions | |
static SQInteger | abs (HSQUIRRELVM vm) |
Make an integer absolute. | |
static SQInteger | min (HSQUIRRELVM vm) |
Get the lowest of two integers. | |
static SQInteger | max (HSQUIRRELVM vm) |
Get the highest of two integers. | |
static SQInteger | require (HSQUIRRELVM vm) |
Load an other file on runtime. | |
static SQInteger | notifyallexceptions (HSQUIRRELVM vm) |
Enable/disable stack trace showing for handled exceptions. |
Most of them are easy wrappers around internal functions. Of course we could just as easy include things like the stdmath of SQ, but of those functions we are sure they work on all our supported targets.
Definition at line 19 of file squirrel_std.hpp.
SQInteger SquirrelStd::require | ( | HSQUIRRELVM | vm | ) | [static] |
Load an other file on runtime.
The filename is always relative from the script it is called from. Absolute calls are NOT allowed!
Definition at line 43 of file squirrel_std.cpp.
References FS2OTTD(), and ReallocT().
Referenced by squirrel_register_global_std().