A higher level wrapper that allows most D functions to be naturally interact with LUA.
This is your go-to wrapper as it's capable of exposing most functions to LUA.
Notes: Any throwables will instead be converted into a lua_error.
The return value (if any) of Func will automatically be converted into a LUA value.
The parameters of Func will automatically be converted from the values passed by LUA.
Func may optionally ask for the lua state by specifying LuaState* as its first parameter.
The D function to wrap.
User code shouldn't ever need to set this, please leave it as the default.
luaState.register!(std.path.buildPath!(string[]))("buildPath")
See Implementation
A higher level wrapper that allows most D functions to be naturally interact with LUA.
This is your go-to wrapper as it's capable of exposing most functions to LUA.
Notes: Any throwables will instead be converted into a lua_error.
The return value (if any) of Func will automatically be converted into a LUA value.
The parameters of Func will automatically be converted from the values passed by LUA.
Func may optionally ask for the lua state by specifying LuaState* as its first parameter.