MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / f_luaopen

Function f_luaopen

src/vm/luavm/lua/lstate.c:195–206  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

193** ('g->version' != NULL flags that the state was completely build)
194*/
195static void f_luaopen (lua_State *L, void *ud, lua_burner_version stepVersion) {
196 global_State *g = G(L);
197 UNUSED(ud);
198 stack_init(L, L); /* init stack */
199 init_registry(L, g);
200 luaS_init(L);
201 luaT_init(L);
202 luaX_init(L);
203 g->gcrunning = 1; /* allow gc */
204 g->version = lua_version(NULL);
205 luai_userstateopen(L);
206}
207
208
209/*

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