diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-29 17:11:36 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-29 17:11:36 -0200 |
commit | 49af08e3e7d1b8e369567f241d06eb6933fd6518 (patch) | |
tree | 0551ba7c4e2404c1fc124bdd4f86b6deea9ae62f /lapi.c | |
parent | c5fa0895e98a3e915f01003f8ae29cde31243cc8 (diff) | |
download | lua-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 | ||
243 | int lua_equalobj (lua_State *L, lua_Object o1, lua_Object o2) { | 243 | int 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 | ||