diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-25 11:48:42 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-25 11:48:42 -0300 |
| commit | c2aa7bd72d620731b5a54b532523dbd9f8e1bfc3 (patch) | |
| tree | b95f235c517d499fc50b1a6c9061928f496e37de /ltests.c | |
| parent | f9dd50cefc6c1c2c57f24d9985c1cc073d9d7300 (diff) | |
| download | lua-c2aa7bd72d620731b5a54b532523dbd9f8e1bfc3.tar.gz lua-c2aa7bd72d620731b5a54b532523dbd9f8e1bfc3.tar.bz2 lua-c2aa7bd72d620731b5a54b532523dbd9f8e1bfc3.zip | |
bug: lua_gettable does not get key from stack top
Diffstat (limited to 'ltests.c')
| -rw-r--r-- | ltests.c | 8 |
1 files changed, 7 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 1.41 2000/09/11 19:42:57 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.42 2000/09/14 14:09:31 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 | */ |
| @@ -410,6 +410,12 @@ static int testC (lua_State *L) { | |||
| 410 | else if EQ("insert") { | 410 | else if EQ("insert") { |
| 411 | lua_insert(L, getnum); | 411 | lua_insert(L, getnum); |
| 412 | } | 412 | } |
| 413 | else if EQ("gettable") { | ||
| 414 | lua_gettable(L, getnum); | ||
| 415 | } | ||
| 416 | else if EQ("settable") { | ||
| 417 | lua_settable(L, getnum); | ||
| 418 | } | ||
| 413 | else if EQ("next") { | 419 | else if EQ("next") { |
| 414 | lua_next(L, -2); | 420 | lua_next(L, -2); |
| 415 | } | 421 | } |
