MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / f_luaopen

Function f_luaopen

src/Chain/libraries/glua/lstate.cpp:206–217  ·  view source on GitHub ↗

** open parts of the state that may cause memory-allocation errors. ** ('g->version' != nullptr flags that the state was completely build) */

Source from the content-addressed store, hash-verified

204** ('g->version' != nullptr flags that the state was completely build)
205*/
206static void f_luaopen(lua_State *L, void *ud) {
207 global_State *g = G(L);
208 UNUSED(ud);
209 stack_init(L, L); /* init stack */
210 init_registry(L, g);
211 luaS_init(L);
212 luaT_init(L);
213 luaX_init(L);
214 g->gcrunning = 1; /* allow gc */
215 g->version = lua_version(nullptr);
216 luai_userstateopen(L);
217}
218
219
220/*

Callers

nothing calls this directly

Calls 6

stack_initFunction · 0.85
init_registryFunction · 0.85
luaS_initFunction · 0.85
luaT_initFunction · 0.85
luaX_initFunction · 0.85
lua_versionFunction · 0.85

Tested by

no test coverage detected