lumars.function_

Everything to do with functions.

Members

Enums

LuaFuncWrapperType
enum LuaFuncWrapperType
Undocumented in source.

Functions

luaCWrapperBasic
int luaCWrapperBasic(lua_State* state)

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

luaCWrapperSmart
int luaCWrapperSmart(lua_State* state)

A higher level wrapper that allows most D functions to be naturally interact with LUA.

Structs

LuaBoundFunc
struct LuaBoundFunc(alias LuaFuncT, alias ReturnT, Params...)

The struct used as the wrapper produced by the LuaFunc.bind and LuaFuncWeak.bind functions.

LuaFunc
struct LuaFunc

A strong reference to a LUA function.

LuaFuncWeak
struct LuaFuncWeak

A weak reference to a lua function that currently exists on the LUA stack.

Templates

pcall
template pcall(size_t results)

Calls a LuaFunc or LuaFuncWeak in protected mode, which means an exception is thrown if the function produces a LUA error.

Meta