luaCWrapperSmart

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.

nothrow
int
luaCWrapperSmart
(
lua_State* state
)

Parameters

Func

The D function to wrap.

Type

User code shouldn't ever need to set this, please leave it as the default.

Examples

luaState.register!(std.path.buildPath!(string[]))("buildPath")

Meta