Additional lua globals
prequire(module, suppress_all) | Require a file that may not exist |
rawtostring(t) | Temporarily removes __tostring handlers and calls tostring |
inline_if(exp, t, f) | Returns t if the expression is true. |
STDLIB.install_table() | install the Table library into global table |
STDLIB.install_math() | Install the Math library into global math |
STDLIB.install_string() | Install the string library into global string |
STDLIB.install_global_utils() | Install Math, String, Table into their global counterparts. |
STDLIB.reload_class() | Reload a required file, NOT IMPLEMENTED |
STDLIB.create_stdlib_globals([files]) | load the stdlib into globals, by default it loads everything into an ALLCAPS name. |
Require a file that may not exist
Parameters:
Temporarily removes __tostring handlers and calls tostring
Parameters:
Returns t if the expression is true.
f if false
Parameters:install the Table library into global table
Install the Math library into global math
Install the string library into global string
Install Math, String, Table into their global counterparts.
Reload a required file, NOT IMPLEMENTED
load the stdlib into globals, by default it loads everything into an ALLCAPS name.
Alternatively you can pass a dictionary of [global names] -> [require path]
.
STDLIB.create_stdlib_globals()