aboutsummaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-05 13:26:37 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-04-05 13:26:37 -0300
commitd394d5536aeccb937fb6fd8e7476b08d672bc892 (patch)
tree82483d3792049e16b5dc8e2573d661ca2acd9573 /lobject.c
parenta2f98314a30859b217d6f7f7741c785a8e029e3c (diff)
downloadlua-d394d5536aeccb937fb6fd8e7476b08d672bc892.tar.gz
lua-d394d5536aeccb937fb6fd8e7476b08d672bc892.tar.bz2
lua-d394d5536aeccb937fb6fd8e7476b08d672bc892.zip
new macro 'eqstr'
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lobject.c b/lobject.c
index 49607676..3c87da1c 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 2.35 2010/02/05 19:09:09 roberto Exp roberto $ 2** $Id: lobject.c,v 2.36 2010/04/02 15:30:27 roberto Exp roberto $
3** Some generic functions over Lua objects 3** Some generic functions over Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -81,6 +81,8 @@ int luaO_rawequalObj (const TValue *t1, const TValue *t2) {
81 return bvalue(t1) == bvalue(t2); /* boolean true must be 1 !! */ 81 return bvalue(t1) == bvalue(t2); /* boolean true must be 1 !! */
82 case LUA_TLIGHTUSERDATA: 82 case LUA_TLIGHTUSERDATA:
83 return pvalue(t1) == pvalue(t2); 83 return pvalue(t1) == pvalue(t2);
84 case LUA_TSTRING:
85 return rawtsvalue(t1) == rawtsvalue(t2);
84 default: 86 default:
85 lua_assert(iscollectable(t1)); 87 lua_assert(iscollectable(t1));
86 return gcvalue(t1) == gcvalue(t2); 88 return gcvalue(t1) == gcvalue(t2);