![]() |
![]()
| ![]() |
![]()
NAMEsystem_load - Load and parse additional scripts or modules. SYNOPSISnil
DESCRIPTIONThe system_load function is used to dynamically parse/load additional .lua files and, optionally, dynamic libraries. The filename extension determines which namespaces that are allowed and how the resource will be loaded and parsed. By default, failure to locate, parse or load the specified resource will lead to a terminal state transition. To avoid this behavior, set dieonfail to 0 or false and a failing call will just return nil. For .lua files, the default is liberal. The namespaces and order searched is (appl-temp > appl > sys_scripts > shared-resources). For .lib files, the extension will be replaced with the implementation defined library extension on the underlying os (typically .so, .dll or .dylib), and the namespace is restricted to RESOURCE_SYS_LIBS . These modules are expected to export the following prototype: lua L_R eg* arcan_module_init(int lua_major, int lua_minor, int lua_vernum) NOTES
EXAMPLEfunction system_load0() MISUSEfunction system_load0()
|