Registers a function to be executed when the Lua state is initialized.
More...
#include <register.h>
|
using | fn = void(lua_State*) |
|
|
static void | register_all (lua_State *L) |
| Executes all registered function and removes them from the list.
|
|
|
using | V = std::vector<fn*> |
|
Registers a function to be executed when the Lua state is initialized.
- See also
- NNGN_LUA_PROXY
◆ fn
◆ static_register()
nngn::lua::static_register::static_register |
( |
fn * | f | ) |
|
|
inlineexplicit |
Adds a function to the list.
◆ register_all()
void nngn::lua::static_register::register_all |
( |
lua_State * | L | ) |
|
|
static |
Executes all registered function and removes them from the list.
◆ registry()
static V & nngn::lua::static_register::registry |
( |
void | | ) |
|
|
inlinestaticprivate |
The documentation for this class was generated from the following files: