aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-11-29 17:11:36 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-11-29 17:11:36 -0200
commit49af08e3e7d1b8e369567f241d06eb6933fd6518 (patch)
tree0551ba7c4e2404c1fc124bdd4f86b6deea9ae62f /lapi.c
parentc5fa0895e98a3e915f01003f8ae29cde31243cc8 (diff)
downloadlua-49af08e3e7d1b8e369567f241d06eb6933fd6518.tar.gz
lua-49af08e3e7d1b8e369567f241d06eb6933fd6518.tar.bz2
lua-49af08e3e7d1b8e369567f241d06eb6933fd6518.zip
new name for lua_equal(obj); LUA_NOOBJECT is equal to LUA_NOOBJECT
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lapi.c b/lapi.c
index 371a2526..fb2e292c 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.57 1999/11/22 13:12:07 roberto Exp roberto $ 2** $Id: lapi.c,v 1.58 1999/11/23 13:58:02 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -240,8 +240,8 @@ int lua_isfunction (lua_State *L, lua_Object o) {
240 return (t == LUA_T_PROTO) || (t == LUA_T_CPROTO); 240 return (t == LUA_T_PROTO) || (t == LUA_T_CPROTO);
241} 241}
242 242
243int lua_equalobj (lua_State *L, lua_Object o1, lua_Object o2) { 243int lua_equal(lua_State *L, lua_Object o1, lua_Object o2) {
244 if (o1 == LUA_NOOBJECT || o2 == LUA_NOOBJECT) return 0; 244 if (o1 == LUA_NOOBJECT || o2 == LUA_NOOBJECT) return (o1 == o2);
245 else return luaO_equalObj(Address(L, o1), Address(L, o2)); 245 else return luaO_equalObj(Address(L, o1), Address(L, o2));
246} 246}
247 247