** open parts of the state that may cause memory-allocation errors. ** ('g->version' != NULL flags that the state was completely build) */
| 193 | ** ('g->version' != NULL flags that the state was completely build) |
| 194 | */ |
| 195 | static 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 | /* |
nothing calls this directly
no test coverage detected