** open parts of the state that may cause memory-allocation errors. */
| 229 | ** open parts of the state that may cause memory-allocation errors. |
| 230 | */ |
| 231 | static void f_luaopen (lua_State *L, void *ud) { |
| 232 | global_State *g = G(L); |
| 233 | UNUSED(ud); |
| 234 | stack_init(L, L); /* init stack */ |
| 235 | init_registry(L, g); |
| 236 | luaS_init(L); |
| 237 | luaT_init(L); |
| 238 | luaX_init(L); |
| 239 | g->gcrunning = 1; /* allow gc */ |
| 240 | setnilvalue(&g->nilvalue); /* now state is complete */ |
| 241 | luai_userstateopen(L); |
| 242 | } |
| 243 | |
| 244 | |
| 245 | /* |
nothing calls this directly
no test coverage detected