From ee4859b3e3db6c1a3223669d15538b3852ca4791 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 22 Apr 2002 11:40:50 -0300 Subject: new way to handle errors (temporary version) --- ldblib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldblib.c') diff --git a/ldblib.c b/ldblib.c index dec973e6..c38cf419 100644 --- a/ldblib.c +++ b/ldblib.c @@ -1,5 +1,5 @@ /* -** $Id: ldblib.c,v 1.46 2002/04/02 20:41:59 roberto Exp roberto $ +** $Id: ldblib.c,v 1.47 2002/04/09 19:48:08 roberto Exp roberto $ ** Interface from Lua to its debug API ** See Copyright Notice in lua.h */ @@ -265,7 +265,7 @@ static const luaL_reg dblib[] = { LUALIB_API int lua_dblibopen (lua_State *L) { luaL_opennamedlib(L, "dbg", dblib, 0); - lua_register(L, LUA_ERRORMESSAGE, errorfb); + lua_register(L, "_ERRORMESSAGE", errorfb); return 0; } -- cgit v1.2.3-55-g6feb