From 5037196f6fddb828056578b1c0d352cdef672d6a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 5 Aug 2002 11:50:39 -0300 Subject: new macros `ttis*' --- ltm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltm.c') diff --git a/ltm.c b/ltm.c index d9a8dcac..70fd9807 100644 --- a/ltm.c +++ b/ltm.c @@ -1,5 +1,5 @@ /* -** $Id: ltm.c,v 1.97 2002/06/25 19:17:22 roberto Exp roberto $ +** $Id: ltm.c,v 1.98 2002/07/17 16:25:13 roberto Exp $ ** Tag methods ** See Copyright Notice in lua.h */ @@ -47,7 +47,7 @@ void luaT_init (lua_State *L) { const TObject *luaT_gettm (Table *events, TMS event, TString *ename) { const TObject *tm = luaH_getstr(events, ename); lua_assert(event <= TM_MODE); - if (ttype(tm) == LUA_TNIL) { /* no tag method? */ + if (ttisnil(tm)) { /* no tag method? */ events->flags |= (1u<