diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-02-17 10:21:28 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-02-17 10:21:28 -0300 |
| commit | 82749b765e1fa657b7d68c64426428951db066d8 (patch) | |
| tree | 924361263a916842a773f705f91a18a383fdea5e | |
| parent | 2b590aea4084ac851a59790189d87f278c56685e (diff) | |
| download | lua-82749b765e1fa657b7d68c64426428951db066d8.tar.gz lua-82749b765e1fa657b7d68c64426428951db066d8.tar.bz2 lua-82749b765e1fa657b7d68c64426428951db066d8.zip | |
'db_errorfb' changed to 'db_traceback' for consistency
| -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 | ||
