better use of "ASSERT".

This commit is contained in:
Roberto Ierusalimschy
1998-03-09 18:49:52 -03:00
parent be6d215f67
commit 0969a971cd
9 changed files with 34 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lobject.c,v 1.9 1997/12/26 18:38:16 roberto Exp roberto $
** $Id: lobject.c,v 1.10 1998/01/09 14:44:55 roberto Exp roberto $
** Some generic functions over Lua objects
** See Copyright Notice in lua.h
*/
@@ -52,7 +52,7 @@ int luaO_equalObj (TObject *t1, TObject *t2)
case LUA_T_CPROTO: return fvalue(t1) == fvalue(t2);
case LUA_T_CLOSURE: return t1->value.cl == t2->value.cl;
default:
lua_error("internal error in `lua_equalObj'");
LUA_INTERNALERROR("invalid type");
return 0; /* UNREACHEABLE */
}
}