diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-11-26 17:40:27 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-11-26 17:40:27 -0200 |
| commit | b291e5000612cff5fd9d80fe242236e846c17eb2 (patch) | |
| tree | 6638c39be8ed7f73fb902f852d0f894f79a052ff | |
| parent | 9ae0c082a350a0685a51da0f7bee3266d5c74e79 (diff) | |
| download | lua-b291e5000612cff5fd9d80fe242236e846c17eb2.tar.gz lua-b291e5000612cff5fd9d80fe242236e846c17eb2.tar.bz2 lua-b291e5000612cff5fd9d80fe242236e846c17eb2.zip | |
extra argument for "assert"
Diffstat (limited to '')
| -rw-r--r-- | lbuiltin.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lbuiltin.c,v 1.8 1997/11/19 17:29:23 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.9 1997/11/26 18:53:45 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 | */ |
| @@ -213,7 +213,7 @@ static void luaI_assert (void) | |||
| 213 | { | 213 | { |
| 214 | lua_Object p = lua_getparam(1); | 214 | lua_Object p = lua_getparam(1); |
| 215 | if (p == LUA_NOOBJECT || lua_isnil(p)) | 215 | if (p == LUA_NOOBJECT || lua_isnil(p)) |
| 216 | lua_error("assertion failed!"); | 216 | luaL_verror("assertion failed! %.100s", luaL_opt_string(2, "")); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | 219 | ||
