summaryrefslogtreecommitdiff
path: root/lvm.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-04-05 15:32:06 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-04-05 15:32:06 -0300
commit528665089402ea1fff2c36efb4c95c416f01c962 (patch)
tree869a5d408b21dbb86559e0ced98b39d507db2cc3 /lvm.h
parent0fb1644c6070daada206fc091f45b4bc39381ea2 (diff)
downloadlua-528665089402ea1fff2c36efb4c95c416f01c962.tar.gz
lua-528665089402ea1fff2c36efb4c95c416f01c962.tar.bz2
lua-528665089402ea1fff2c36efb4c95c416f01c962.zip
new macro 'ttisequal'
Diffstat (limited to '')
-rw-r--r--lvm.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lvm.h b/lvm.h
index 23e50798..8e61cf34 100644
--- a/lvm.h
+++ b/lvm.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.h,v 2.13 2009/11/19 19:04:58 roberto Exp roberto $ 2** $Id: lvm.h,v 2.14 2009/12/17 16:20:01 roberto Exp roberto $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -17,8 +17,7 @@
17 17
18#define tonumber(o,n) (ttisnumber(o) || (((o) = luaV_tonumber(o,n)) != NULL)) 18#define tonumber(o,n) (ttisnumber(o) || (((o) = luaV_tonumber(o,n)) != NULL))
19 19
20#define equalobj(L,o1,o2) \ 20#define equalobj(L,o1,o2) (ttisequal(o1, o2) && luaV_equalval_(L, o1, o2))
21 (ttype(o1) == ttype(o2) && luaV_equalval_(L, o1, o2))
22 21
23 22
24/* not to called directly */ 23/* not to called directly */