MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / f_luaopen

Function f_luaopen

third-party/lua-5.5.0/src/lstate.c:207–218  ·  view source on GitHub ↗

** open parts of the state that may cause memory-allocation errors. */

Source from the content-addressed store, hash-verified

205** open parts of the state that may cause memory-allocation errors.
206*/
207static void f_luaopen (lua_State *L, void *ud) {
208 global_State *g = G(L);
209 UNUSED(ud);
210 stack_init(L, L); /* init stack */
211 init_registry(L, g);
212 luaS_init(L);
213 luaT_init(L);
214 luaX_init(L);
215 g->gcstp = 0; /* allow gc */
216 setnilvalue(&g->nilvalue); /* now state is complete */
217 luai_userstateopen(L);
218}
219
220
221/*

Callers

nothing calls this directly

Calls 5

stack_initFunction · 0.70
init_registryFunction · 0.70
luaS_initFunction · 0.70
luaT_initFunction · 0.70
luaX_initFunction · 0.70

Tested by

no test coverage detected