diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-03-09 18:49:52 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-03-09 18:49:52 -0300 |
commit | 0969a971cd41921bd5ee72c1da880455bcca3bb4 (patch) | |
tree | 74be9a39706eeb1e7f4e5c2cf49693364c399790 /lapi.c | |
parent | be6d215f674f3d148d3f80a0553e8b2aa6da51d7 (diff) | |
download | lua-0969a971cd41921bd5ee72c1da880455bcca3bb4.tar.gz lua-0969a971cd41921bd5ee72c1da880455bcca3bb4.tar.bz2 lua-0969a971cd41921bd5ee72c1da880455bcca3bb4.zip |
better use of "ASSERT".
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 1.22 1998/03/06 16:54:42 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.23 1998/03/06 18:47:42 roberto Exp roberto $ |
3 | ** Lua API | 3 | ** Lua API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -404,7 +404,7 @@ int lua_tag (lua_Object lo) | |||
404 | return o->value.cl->consts[0].ttype; | 404 | return o->value.cl->consts[0].ttype; |
405 | #ifdef DEBUG | 405 | #ifdef DEBUG |
406 | case LUA_T_LINE: | 406 | case LUA_T_LINE: |
407 | lua_error("internal error"); | 407 | LUA_INTERNALERROR("invalid type"); |
408 | #endif | 408 | #endif |
409 | default: | 409 | default: |
410 | return t; | 410 | return t; |