nngn
Loading...
Searching...
No Matches
nngn::lua::static_register Class Reference

Registers a function to be executed when the Lua state is initialized. More...

#include <register.h>

Public Types

using fn = void(lua_State*)
 

Public Member Functions

 static_register (fn *f)
 Adds a function to the list.
 

Static Public Member Functions

static void register_all (lua_State *L)
 Executes all registered function and removes them from the list.
 

Private Types

using V = std::vector<fn*>
 

Static Private Member Functions

static Vregistry (void)
 

Detailed Description

Registers a function to be executed when the Lua state is initialized.

See also
NNGN_LUA_PROXY

Member Typedef Documentation

◆ fn

using nngn::lua::static_register::fn = void(lua_State*)

◆ V

using nngn::lua::static_register::V = std::vector<fn*>
private

Constructor & Destructor Documentation

◆ static_register()

nngn::lua::static_register::static_register ( fn * f)
inlineexplicit

Adds a function to the list.

Here is the call graph for this function:

Member Function Documentation

◆ register_all()

void nngn::lua::static_register::register_all ( lua_State * L)
static

Executes all registered function and removes them from the list.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ registry()

static V & nngn::lua::static_register::registry ( void )
inlinestaticprivate
Here is the caller graph for this function:

The documentation for this class was generated from the following files: