|
OpenTTD Source 20260304-master-g1baaa74679
|
By default we want to give a set of standard commands to a SQ script. More...
#include <squirrel_std.hpp>
Static Public Member Functions | |
| 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 another file on runtime. | |
| static SQInteger | notifyallexceptions (HSQUIRRELVM vm) |
| Enable/disable stack trace showing for handled exceptions. | |
By default we want to give a set of standard commands to a SQ script.
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 26 of file squirrel_std.hpp.
|
static |
Get the highest of two integers.
| vm | The virtual machine to get the integers from, and write the result to. |
Definition at line 30 of file squirrel_std.cpp.
Referenced by squirrel_register_std().
|
static |
Get the lowest of two integers.
| vm | The virtual machine to get the integers from, and write the result to. |
Definition at line 20 of file squirrel_std.cpp.
Referenced by squirrel_register_std().
|
static |
Enable/disable stack trace showing for handled exceptions.
| vm | The virtual machine to change the notifications for. |
0 upon success, or any other integer upon failure. Definition at line 70 of file squirrel_std.cpp.
Referenced by squirrel_register_global_std().
|
static |
Load another file on runtime.
| vm | The virtual machine to load the file into. |
0 upon success, or any other integer upon failure. Definition at line 40 of file squirrel_std.cpp.
References Squirrel::LoadScript().
Referenced by squirrel_register_global_std().