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 *)
 
using fn = void(lua_State *)
 

Public Member Functions

 static_register (fn *f)
 Adds a function to the list.
 
 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.
 
static void register_all (lua_State *L)
 Executes all registered function and removes them from the list.
 

Private Types

using V = std::vector< fn * >
 
using V = std::vector< fn * >
 

Static Private Member Functions

static Vregistry (void)
 
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 [1/2]

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

◆ fn [2/2]

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

◆ V [1/2]

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

◆ V [2/2]

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

Constructor & Destructor Documentation

◆ static_register() [1/2]

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

Adds a function to the list.

Here is the call graph for this function:

◆ static_register() [2/2]

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() [1/2]

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:

◆ register_all() [2/2]

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

Executes all registered function and removes them from the list.

◆ registry() [1/2]

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

◆ registry() [2/2]

static V & nngn::lua::static_register::registry ( void  )
inlinestaticprivate

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