diff options
-rw-r--r-- | lstate.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 1.33 2000/08/14 17:46:07 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.34 2000/08/28 17:57:04 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 | */ |
@@ -49,7 +49,8 @@ lua_State *lua_newstate (int stacksize, int put_builtin) { | |||
49 | L->errorJmp = &myErrorJmp; | 49 | L->errorJmp = &myErrorJmp; |
50 | if (setjmp(myErrorJmp.b) == 0) { /* to catch memory allocation errors */ | 50 | if (setjmp(myErrorJmp.b) == 0) { /* to catch memory allocation errors */ |
51 | L->gt = luaH_new(L, 10); | 51 | L->gt = luaH_new(L, 10); |
52 | luaD_init(L, (stacksize == 0) ? DEFAULT_STACK_SIZE : stacksize); | 52 | luaD_init(L, (stacksize == 0) ? DEFAULT_STACK_SIZE : |
53 | stacksize+LUA_MINSTACK); | ||
53 | luaS_init(L); | 54 | luaS_init(L); |
54 | luaX_init(L); | 55 | luaX_init(L); |
55 | luaT_init(L); | 56 | luaT_init(L); |