more relaxed rules for __eq metamethod (more similar to other

operators)
This commit is contained in:
Roberto Ierusalimschy
2014-06-10 15:53:18 -03:00
parent 542b6cfc02
commit 1a3656e56e
3 changed files with 11 additions and 20 deletions

3
ltm.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: ltm.h,v 2.18 2013/12/18 14:12:03 roberto Exp roberto $
** $Id: ltm.h,v 2.19 2013/12/30 20:47:58 roberto Exp roberto $
** Tag methods
** See Copyright Notice in lua.h
*/
@@ -67,7 +67,6 @@ LUAI_FUNC int luaT_callbinTM (lua_State *L, const TValue *p1, const TValue *p2,
StkId res, TMS event);
LUAI_FUNC void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2,
StkId res, TMS event);
LUAI_FUNC const TValue *luaT_getequalTM (lua_State *L, Table *mt1, Table *mt2);
LUAI_FUNC int luaT_callorderTM (lua_State *L, const TValue *p1,
const TValue *p2, TMS event);