** open parts of the state that may cause memory-allocation errors. */
| 205 | ** open parts of the state that may cause memory-allocation errors. |
| 206 | */ |
| 207 | static void f_luaopen (lua_State *L, void *ud) { |
| 208 | global_State *g = G(L); |
| 209 | UNUSED(ud); |
| 210 | stack_init(L, L); /* init stack */ |
| 211 | init_registry(L, g); |
| 212 | luaS_init(L); |
| 213 | luaT_init(L); |
| 214 | luaX_init(L); |
| 215 | g->gcstp = 0; /* allow gc */ |
| 216 | setnilvalue(&g->nilvalue); /* now state is complete */ |
| 217 | luai_userstateopen(L); |
| 218 | } |
| 219 | |
| 220 | |
| 221 | /* |
nothing calls this directly
no test coverage detected