MCPcopy Create free account
hub / github.com/Tencent/sluaunreal / f_luaopen

Function f_luaopen

Plugins/slua_unreal/External/lua/lstate.cpp:200–211  ·  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

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

Callers

nothing calls this directly

Calls 7

GFunction · 0.85
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