diff options
Diffstat (limited to 'ldblib.c')
-rw-r--r-- | ldblib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldblib.c,v 1.108 2008/01/18 17:14:47 roberto Exp roberto $ | 2 | ** $Id: ldblib.c,v 1.109 2008/01/21 13:37: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 | */ |
@@ -315,7 +315,7 @@ static int db_debug (lua_State *L) { | |||
315 | } | 315 | } |
316 | 316 | ||
317 | 317 | ||
318 | static int db_errorfb (lua_State *L) { | 318 | static int db_traceback (lua_State *L) { |
319 | int arg; | 319 | int arg; |
320 | lua_State *L1 = getthread(L, &arg); | 320 | lua_State *L1 = getthread(L, &arg); |
321 | const char *msg = lua_tostring(L, arg + 1); | 321 | const char *msg = lua_tostring(L, arg + 1); |
@@ -343,7 +343,7 @@ static const luaL_Reg dblib[] = { | |||
343 | {"setlocal", db_setlocal}, | 343 | {"setlocal", db_setlocal}, |
344 | {"setmetatable", db_setmetatable}, | 344 | {"setmetatable", db_setmetatable}, |
345 | {"setupvalue", db_setupvalue}, | 345 | {"setupvalue", db_setupvalue}, |
346 | {"traceback", db_errorfb}, | 346 | {"traceback", db_traceback}, |
347 | {NULL, NULL} | 347 | {NULL, NULL} |
348 | }; | 348 | }; |
349 | 349 | ||