diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-11-09 17:08:07 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-11-09 17:08:07 -0200 |
commit | e0e406ead38443ece426cb2ff06d26180855e363 (patch) | |
tree | fa09603a8e04cd59a6a46966de0f88a7e1a5ee58 | |
parent | 30cea671a74f26c9485387445ed6d962d9277fae (diff) | |
download | lua-e0e406ead38443ece426cb2ff06d26180855e363.tar.gz lua-e0e406ead38443ece426cb2ff06d26180855e363.tar.bz2 lua-e0e406ead38443ece426cb2ff06d26180855e363.zip |
extra argument to instruction 'checkstack' (in 'testC')
-rw-r--r-- | ltests.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.122 2011/08/23 17:24:34 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.123 2011/09/24 21:11:29 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -1257,7 +1257,8 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) { | |||
1257 | lua_pushinteger(L1, i); | 1257 | lua_pushinteger(L1, i); |
1258 | } | 1258 | } |
1259 | else if EQ("checkstack") { | 1259 | else if EQ("checkstack") { |
1260 | luaL_checkstack(L1, getnum, NULL); | 1260 | int sz = getnum; |
1261 | luaL_checkstack(L1, sz, getstring); | ||
1261 | } | 1262 | } |
1262 | else if EQ("newmetatable") { | 1263 | else if EQ("newmetatable") { |
1263 | lua_pushboolean(L1, luaL_newmetatable(L1, getstring)); | 1264 | lua_pushboolean(L1, luaL_newmetatable(L1, getstring)); |