** open parts of the state that may cause memory-allocation errors. ** ('g->nilvalue' being a nil value flags that the state was completely ** build.) */
| 261 | ** build.) |
| 262 | */ |
| 263 | static 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 | /* |
nothing calls this directly
no test coverage detected