aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ltests.c b/ltests.c
index 60bb2ea4..12a33cfe 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 1.59 2001/01/22 18:01:38 roberto Exp roberto $ 2** $Id: ltests.c,v 1.60 2001/01/29 17:16:58 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*/
@@ -484,6 +484,13 @@ static int testC (lua_State *L) {
484 else if EQ("concat") { 484 else if EQ("concat") {
485 lua_concat(L, getnum); 485 lua_concat(L, getnum);
486 } 486 }
487 else if EQ("lessthan") {
488 int a = getnum;
489 if (lua_lessthan(L, a, getnum))
490 lua_pushnumber(L, 1);
491 else
492 lua_pushnil(L);
493 }
487 else if EQ("rawcall") { 494 else if EQ("rawcall") {
488 int narg = getnum; 495 int narg = getnum;
489 int nres = getnum; 496 int nres = getnum;