diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-04-05 15:32:06 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-04-05 15:32:06 -0300 |
commit | 528665089402ea1fff2c36efb4c95c416f01c962 (patch) | |
tree | 869a5d408b21dbb86559e0ced98b39d507db2cc3 /lvm.h | |
parent | 0fb1644c6070daada206fc091f45b4bc39381ea2 (diff) | |
download | lua-528665089402ea1fff2c36efb4c95c416f01c962.tar.gz lua-528665089402ea1fff2c36efb4c95c416f01c962.tar.bz2 lua-528665089402ea1fff2c36efb4c95c416f01c962.zip |
new macro 'ttisequal'
Diffstat (limited to '')
-rw-r--r-- | lvm.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 */ |