registerDFunction

Registers a D function to be called from Lua. Code is modified from MrcSnm's example found in the HipremeEngine.

extern (C) public nothrow
int
registerDFunction
(
alias Func
)
(
lua_State* state
)
if (
isSomeFunction!(Func)
)

Parameters

state lua_State*

The Lua state to handle the data from the Lua side of things. Template params:

Func

The function to be registered.

Meta