aboutsummaryrefslogtreecommitdiff
path: root/lbuiltin.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-11-11 15:02:40 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-11-11 15:02:40 -0200
commit573372665ab47bb6c0451ee7ca3ff5fce9b370e0 (patch)
tree248cfe8ec057fb301145fea58387b752435d3be3 /lbuiltin.c
parenta6755e2f1a6b9993cfd9e94c4165c76adafbdc31 (diff)
downloadlua-573372665ab47bb6c0451ee7ca3ff5fce9b370e0.tar.gz
lua-573372665ab47bb6c0451ee7ca3ff5fce9b370e0.tar.bz2
lua-573372665ab47bb6c0451ee7ca3ff5fce9b370e0.zip
new API function `lua_equalobj'
Diffstat (limited to 'lbuiltin.c')
-rw-r--r--lbuiltin.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lbuiltin.c b/lbuiltin.c
index 7dc09664..98918b54 100644
--- a/lbuiltin.c
+++ b/lbuiltin.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbuiltin.c,v 1.70 1999/11/04 17:22:26 roberto Exp roberto $ 2** $Id: lbuiltin.c,v 1.71 1999/11/10 15:41:11 roberto Exp roberto $
3** Built-in functions 3** Built-in functions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -741,6 +741,10 @@ static void testC (void) {
741 n=lua_next(reg[n], (int)lua_getnumber(reg[getnum(s)])); 741 n=lua_next(reg[n], (int)lua_getnumber(reg[getnum(s)]));
742 lua_pushnumber(n); break; 742 lua_pushnumber(n); break;
743 } 743 }
744 case 'q' : { int n1=getnum(s); int n2=getnum(s);
745 lua_pushnumber(lua_equalobj(reg[n1], reg[n2]));
746 break;
747 }
744 default: luaL_verror("unknown command in `testC': %c", *(s-1)); 748 default: luaL_verror("unknown command in `testC': %c", *(s-1));
745 } 749 }
746 if (*s == 0) return; 750 if (*s == 0) return;