luaCWrapperBasic

The bare minimum wrapper needed to allow LUA to call a D function.

Notes: Any throwables will instead be converted into a lua_error.

extern (C) nothrow
int
luaCWrapperBasic
(
alias Func
)
(
lua_State* state
)

Parameters

Func

The D function to wrap. This function must take a LuaState* as its only parameter, and it can optionally return an int to signify how many values it has returned.

Meta