diff options
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1159,7 +1159,7 @@ static int num2int (lua_State *L) { | |||
1159 | static int newstate (lua_State *L) { | 1159 | static int newstate (lua_State *L) { |
1160 | void *ud; | 1160 | void *ud; |
1161 | lua_Alloc f = lua_getallocf(L, &ud); | 1161 | lua_Alloc f = lua_getallocf(L, &ud); |
1162 | lua_State *L1 = lua_newstate(f, ud); | 1162 | lua_State *L1 = lua_newstate(f, ud, 0); |
1163 | if (L1) { | 1163 | if (L1) { |
1164 | lua_atpanic(L1, tpanic); | 1164 | lua_atpanic(L1, tpanic); |
1165 | lua_pushlightuserdata(L, L1); | 1165 | lua_pushlightuserdata(L, L1); |
@@ -1252,7 +1252,7 @@ static int checkpanic (lua_State *L) { | |||
1252 | lua_Alloc f = lua_getallocf(L, &ud); | 1252 | lua_Alloc f = lua_getallocf(L, &ud); |
1253 | b.paniccode = luaL_optstring(L, 2, ""); | 1253 | b.paniccode = luaL_optstring(L, 2, ""); |
1254 | b.L = L; | 1254 | b.L = L; |
1255 | L1 = lua_newstate(f, ud); /* create new state */ | 1255 | L1 = lua_newstate(f, ud, 0); /* create new state */ |
1256 | if (L1 == NULL) { /* error? */ | 1256 | if (L1 == NULL) { /* error? */ |
1257 | lua_pushnil(L); | 1257 | lua_pushnil(L); |
1258 | return 1; | 1258 | return 1; |