better control of relationship top x L->top

This commit is contained in:
Roberto Ierusalimschy
2001-02-01 14:03:38 -02:00
parent 6858763994
commit 4ab6acacdf
4 changed files with 96 additions and 89 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ltests.c,v 1.59 2001/01/22 18:01:38 roberto Exp roberto $
** $Id: ltests.c,v 1.60 2001/01/29 17:16:58 roberto Exp roberto $
** Internal Module for Debugging of the Lua Implementation
** See Copyright Notice in lua.h
*/
@@ -484,6 +484,13 @@ static int testC (lua_State *L) {
else if EQ("concat") {
lua_concat(L, getnum);
}
else if EQ("lessthan") {
int a = getnum;
if (lua_lessthan(L, a, getnum))
lua_pushnumber(L, 1);
else
lua_pushnil(L);
}
else if EQ("rawcall") {
int narg = getnum;
int nres = getnum;