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

Function f_luaopen

extlibs/lua/src/lstate.c:263–274  ·  view source on GitHub ↗

** open parts of the state that may cause memory-allocation errors. ** ('g->nilvalue' being a nil value flags that the state was completely ** build.) */

Source from the content-addressed store, hash-verified

261** build.)
262*/
263static void f_luaopen (lua_State *L, void *ud) {
264 global_State *g = G(L);
265 UNUSED(ud);
266 stack_init(L, L); /* init stack */
267 init_registry(L, g);
268 luaS_init(L);
269 luaT_init(L);
270 luaX_init(L);
271 g->gcrunning = 1; /* allow gc */
272 setnilvalue(&g->nilvalue);
273 luai_userstateopen(L);
274}
275
276
277/*

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected