aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-09-16 16:18:01 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-09-16 16:18:01 -0300
commit8dae071f42bf036ea3f61468aca825397c8e33e4 (patch)
treecaf33f6b9cf7a72f2debf866e7c868ac019da419
parentafe1305b1ad915b62b1eefed231378d126b1bac2 (diff)
downloadlua-8dae071f42bf036ea3f61468aca825397c8e33e4.tar.gz
lua-8dae071f42bf036ea3f61468aca825397c8e33e4.tar.bz2
lua-8dae071f42bf036ea3f61468aca825397c8e33e4.zip
details
-rw-r--r--ldblib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ldblib.c b/ldblib.c
index 7294ce97..50b632a4 100644
--- a/ldblib.c
+++ b/ldblib.c
@@ -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? */