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 /lbuiltin.c | |
parent | be6d215f674f3d148d3f80a0553e8b2aa6da51d7 (diff) | |
download | lua-0969a971cd41921bd5ee72c1da880455bcca3bb4.tar.gz lua-0969a971cd41921bd5ee72c1da880455bcca3bb4.tar.bz2 lua-0969a971cd41921bd5ee72c1da880455bcca3bb4.zip |
better use of "ASSERT".
Diffstat (limited to 'lbuiltin.c')
-rw-r--r-- | lbuiltin.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbuiltin.c,v 1.25 1998/02/12 19:27:10 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.26 1998/03/06 16:54:42 roberto Exp roberto $ |
3 | ** Built-in functions | 3 | ** Built-in functions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -160,8 +160,8 @@ static char *to_string (lua_Object obj) | |||
160 | } | 160 | } |
161 | case LUA_T_NIL: | 161 | case LUA_T_NIL: |
162 | return "nil"; | 162 | return "nil"; |
163 | default: | 163 | default: |
164 | lua_error("internal error"); | 164 | LUA_INTERNALERROR("invalid type"); |
165 | return NULL; /* to avoid warnings */ | 165 | return NULL; /* to avoid warnings */ |
166 | } | 166 | } |
167 | } | 167 | } |