diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-22 11:40:50 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-04-22 11:40:50 -0300 |
commit | ee4859b3e3db6c1a3223669d15538b3852ca4791 (patch) | |
tree | a9a9532c03f0a9bc58599e34457cb618aa5f11f2 /ldblib.c | |
parent | f388ee4a822b3d8027ed7c28aa21e9406e4a11eb (diff) | |
download | lua-ee4859b3e3db6c1a3223669d15538b3852ca4791.tar.gz lua-ee4859b3e3db6c1a3223669d15538b3852ca4791.tar.bz2 lua-ee4859b3e3db6c1a3223669d15538b3852ca4791.zip |
new way to handle errors (temporary version)
Diffstat (limited to 'ldblib.c')
-rw-r--r-- | ldblib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldblib.c,v 1.46 2002/04/02 20:41:59 roberto Exp roberto $ | 2 | ** $Id: ldblib.c,v 1.47 2002/04/09 19:48:08 roberto Exp roberto $ |
3 | ** Interface from Lua to its debug API | 3 | ** Interface from Lua to its debug API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -265,7 +265,7 @@ static const luaL_reg dblib[] = { | |||
265 | 265 | ||
266 | LUALIB_API int lua_dblibopen (lua_State *L) { | 266 | LUALIB_API int lua_dblibopen (lua_State *L) { |
267 | luaL_opennamedlib(L, "dbg", dblib, 0); | 267 | luaL_opennamedlib(L, "dbg", dblib, 0); |
268 | lua_register(L, LUA_ERRORMESSAGE, errorfb); | 268 | lua_register(L, "_ERRORMESSAGE", errorfb); |
269 | return 0; | 269 | return 0; |
270 | } | 270 | } |
271 | 271 | ||