diff options
Diffstat (limited to 'lstate.c')
| -rw-r--r-- | lstate.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstate.c,v 2.16 2004/11/19 15:52:40 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.17 2004/11/24 19:20:21 roberto Exp roberto $ |
| 3 | ** Global State | 3 | ** Global State |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -193,6 +193,8 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { | |||
| 193 | setnilvalue(gval(g->dummynode)); | 193 | setnilvalue(gval(g->dummynode)); |
| 194 | gnext(g->dummynode) = NULL; | 194 | gnext(g->dummynode) = NULL; |
| 195 | g->totalbytes = sizeof(LG); | 195 | g->totalbytes = sizeof(LG); |
| 196 | g->stepmul = STEPMUL; | ||
| 197 | g->incgc = 1; | ||
| 196 | if (luaD_rawrunprotected(L, f_luaopen, NULL) != 0) { | 198 | if (luaD_rawrunprotected(L, f_luaopen, NULL) != 0) { |
| 197 | /* memory allocation error: free partial state */ | 199 | /* memory allocation error: free partial state */ |
| 198 | close_state(L); | 200 | close_state(L); |
