LuaState.register

Registers the given D function into Lua, under a specific name within the global table.

Func can be any normal D function. By default it is wrapped using luaCWrapperSmart to allow a (mostly) seamless way of interfacing D and Lua together. Please see luaCWrapperSmart's documentation if you'd like to learn more.

  1. void register(char[] name, LuaCFunc func)
  2. void register(char[] name)
    struct LuaState
    void
    register
    (
    alias Func
    )
    (
    const char[] name
    )
  3. void register(char[] libname)

Parameters

Func

The function to wrap.

name char[]

The name to register the function under.

Meta