aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-01 14:03:38 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-02-01 14:03:38 -0200
commit4ab6acacdfdb5d5d29ed4d089aeda3ec6d82670b (patch)
tree86b28ac2c82f1d69a29ec8c842e6b559ad2b9923 /ltests.c
parent68587639945aa68844871fdd74a6729b653f523a (diff)
downloadlua-4ab6acacdfdb5d5d29ed4d089aeda3ec6d82670b.tar.gz
lua-4ab6acacdfdb5d5d29ed4d089aeda3ec6d82670b.tar.bz2
lua-4ab6acacdfdb5d5d29ed4d089aeda3ec6d82670b.zip
better control of relationship top x L->top
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;