diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-09-16 16:18:01 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-09-16 16:18:01 -0300 |
| commit | 8dae071f42bf036ea3f61468aca825397c8e33e4 (patch) | |
| tree | caf33f6b9cf7a72f2debf866e7c868ac019da419 | |
| parent | afe1305b1ad915b62b1eefed231378d126b1bac2 (diff) | |
| download | lua-8dae071f42bf036ea3f61468aca825397c8e33e4.tar.gz lua-8dae071f42bf036ea3f61468aca825397c8e33e4.tar.bz2 lua-8dae071f42bf036ea3f61468aca825397c8e33e4.zip | |
details
| -rw-r--r-- | ldblib.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ldblib.c,v 1.68 2002/08/16 14:45:18 roberto Exp roberto $ | 2 | ** $Id: ldblib.c,v 1.69 2002/09/05 19:45:42 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 | */ |
| @@ -198,7 +198,8 @@ static int errorfb (lua_State *L) { | |||
| 198 | if (lua_gettop(L) == 0) | 198 | if (lua_gettop(L) == 0) |
| 199 | lua_pushliteral(L, ""); | 199 | lua_pushliteral(L, ""); |
| 200 | else if (!lua_isstring(L, 1)) return 1; /* no string message */ | 200 | else if (!lua_isstring(L, 1)) return 1; /* no string message */ |
| 201 | lua_pushliteral(L, "\nstack traceback:"); | 201 | else lua_pushliteral(L, "\n"); |
| 202 | lua_pushliteral(L, "stack traceback:"); | ||
| 202 | while (lua_getstack(L, level++, &ar)) { | 203 | while (lua_getstack(L, level++, &ar)) { |
| 203 | if (level > LEVELS1 && firstpart) { | 204 | if (level > LEVELS1 && firstpart) { |
| 204 | /* no more than `LEVELS2' more levels? */ | 205 | /* no more than `LEVELS2' more levels? */ |
