From c2aa7bd72d620731b5a54b532523dbd9f8e1bfc3 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 25 Sep 2000 11:48:42 -0300 Subject: bug: lua_gettable does not get key from stack top --- ltests.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 04cd1b40..fe0ed439 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 1.41 2000/09/11 19:42:57 roberto Exp roberto $ +** $Id: ltests.c,v 1.42 2000/09/14 14:09:31 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -410,6 +410,12 @@ static int testC (lua_State *L) { else if EQ("insert") { lua_insert(L, getnum); } + else if EQ("gettable") { + lua_gettable(L, getnum); + } + else if EQ("settable") { + lua_settable(L, getnum); + } else if EQ("next") { lua_next(L, -2); } -- cgit v1.2.3-55-g6feb