mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
better use of "ASSERT".
This commit is contained in:
parent
be6d215f67
commit
0969a971cd
9 changed files with 34 additions and 19 deletions
4
lapi.c
4
lapi.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lapi.c,v 1.22 1998/03/06 16:54:42 roberto Exp roberto $
|
||||
** $Id: lapi.c,v 1.23 1998/03/06 18:47:42 roberto Exp roberto $
|
||||
** Lua API
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -404,7 +404,7 @@ int lua_tag (lua_Object lo)
|
|||
return o->value.cl->consts[0].ttype;
|
||||
#ifdef DEBUG
|
||||
case LUA_T_LINE:
|
||||
lua_error("internal error");
|
||||
LUA_INTERNALERROR("invalid type");
|
||||
#endif
|
||||
default:
|
||||
return t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue