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: lbuiltin.c,v 1.25 1998/02/12 19:27:10 roberto Exp roberto $
** $Id: lbuiltin.c,v 1.26 1998/03/06 16:54:42 roberto Exp roberto $
** Built-in functions
** See Copyright Notice in lua.h
*/
@@ -160,8 +160,8 @@ static char *to_string (lua_Object obj)
}
case LUA_T_NIL:
return "nil";
default:
lua_error("internal error");
default:
LUA_INTERNALERROR("invalid type");
return NULL; /* to avoid warnings */
}
}