lua

A copy of the Lua development repository
Log | Files | Refs | README

commit b291e5000612cff5fd9d80fe242236e846c17eb2
parent 9ae0c082a350a0685a51da0f7bee3266d5c74e79
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed, 26 Nov 1997 17:40:06 -0200

extra argument for "assert"

Diffstat:
Mlbuiltin.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lbuiltin.c b/lbuiltin.c @@ -1,5 +1,5 @@ /* -** $Id: lbuiltin.c,v 1.8 1997/11/19 17:29:23 roberto Exp roberto $ +** $Id: lbuiltin.c,v 1.9 1997/11/26 18:53:45 roberto Exp roberto $ ** Built-in functions ** See Copyright Notice in lua.h */ @@ -213,7 +213,7 @@ static void luaI_assert (void) { lua_Object p = lua_getparam(1); if (p == LUA_NOOBJECT || lua_isnil(p)) - lua_error("assertion failed!"); + luaL_verror("assertion failed! %.100s", luaL_opt_string(2, "")); }