requiref method
Loads library if not loaded already and pushes it on the stack.
If global
is true the library is put in _G as modname
.
This function is commonly used to load builtin libraries, Example:
Implementation
void requiref(String modname, dynamic fn, [bool global = true]) =>
luaL_requiref(
L, to_luastring(modname), _convertCFunction(fn), global ? 1 : 0
);