diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-30 16:17:08 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-06-30 16:17:08 -0300 |
| commit | ae55f3eeada102f3fa8345173410feaf1db42cde (patch) | |
| tree | eaddcc592b75b5035abc35ccd7fc99dd9aa95ea4 /ltests.c | |
| parent | cfba57207660fd27ddac9ea51cdeb263c2d6b418 (diff) | |
| download | lua-ae55f3eeada102f3fa8345173410feaf1db42cde.tar.gz lua-ae55f3eeada102f3fa8345173410feaf1db42cde.tar.bz2 lua-ae55f3eeada102f3fa8345173410feaf1db42cde.zip | |
no varargs in Lua API
Diffstat (limited to 'ltests.c')
| -rw-r--r-- | ltests.c | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 1.27 2000/06/26 19:28:31 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.28 2000/06/28 17:06:07 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 | */ |
| @@ -374,8 +374,7 @@ static void testC (void) { | |||
| 374 | } | 374 | } |
| 375 | else if EQ("newstate") { | 375 | else if EQ("newstate") { |
| 376 | int stacksize = getnum(&pc); | 376 | int stacksize = getnum(&pc); |
| 377 | lua_State *L1 = lua_newstate("stack", stacksize, | 377 | lua_State *L1 = lua_newstate(stacksize, getnum(&pc)); |
| 378 | "builtin", getnum(&pc), NULL); | ||
| 379 | lua_pushuserdata(L1); | 378 | lua_pushuserdata(L1); |
| 380 | } | 379 | } |
| 381 | else if EQ("closestate") { | 380 | else if EQ("closestate") { |
