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.

luaOverloads
int luaOverloads(LuaState* state)

A function that wraps around other functions in order to provide runtime overloading support.

Structs

LuaBasicFunction
struct LuaBasicFunction

See: luaCWrapperSmart

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.

LuaMultiReturn
struct LuaMultiReturn(T...)
Undocumented in source.
LuaVariadic
struct LuaVariadic

When used as the _last_ parameter of a function: Allows the function to capture any amount of additional arguments passed in from Lua.

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