new name for lua_equal(obj); LUA_NOOBJECT is equal to LUA_NOOBJECT

This commit is contained in:
Roberto Ierusalimschy
1999-11-29 17:11:36 -02:00
parent c5fa0895e9
commit 49af08e3e7
3 changed files with 8 additions and 8 deletions

6
lapi.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lapi.c,v 1.57 1999/11/22 13:12:07 roberto Exp roberto $
** $Id: lapi.c,v 1.58 1999/11/23 13:58:02 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -240,8 +240,8 @@ int lua_isfunction (lua_State *L, lua_Object o) {
return (t == LUA_T_PROTO) || (t == LUA_T_CPROTO);
}
int lua_equalobj (lua_State *L, lua_Object o1, lua_Object o2) {
if (o1 == LUA_NOOBJECT || o2 == LUA_NOOBJECT) return 0;
int lua_equal(lua_State *L, lua_Object o1, lua_Object o2) {
if (o1 == LUA_NOOBJECT || o2 == LUA_NOOBJECT) return (o1 == o2);
else return luaO_equalObj(Address(L, o1), Address(L, o2));
}