summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/clua.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-22 11:00:14 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-22 11:00:14 +0000
commitec5b5dfca31a3c2ec1a101e38f57f47c3952acb8 (patch)
treed4161725fc218e93d7cc7042253fc4fa77bf476c /crawl-ref/source/clua.cc
parenta54e6bb23df5211c2a5b59037f355c43e795fa05 (diff)
downloadcrawl-ref-ec5b5dfca31a3c2ec1a101e38f57f47c3952acb8.tar.gz
crawl-ref-ec5b5dfca31a3c2ec1a101e38f57f47c3952acb8.zip
Include the Lua stack trace and currently acting monsters in the crash report.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8694 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r--crawl-ref/source/clua.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc
index 2f76087e43..e75261e300 100644
--- a/crawl-ref/source/clua.cc
+++ b/crawl-ref/source/clua.cc
@@ -3205,7 +3205,7 @@ void print_clua_stack(void)
int i = 0;
lua_State *L = clua.state();
- fprintf(stderr, "\n");
+ fprintf(stderr, EOL);
while (lua_getstack(L, i++, &dbg) == 1)
{
lua_getinfo(L, "lnuS", &dbg);
@@ -3216,11 +3216,9 @@ void print_clua_stack(void)
else
file++;
- // Have to use "\r\n" instead of just "\n" here, for some
- // reason.
- fprintf(stderr, "%s, function %s, line %d\r\n", file,
+ fprintf(stderr, "%s, function %s, line %d" EOL, file,
dbg.name, dbg.currentline);
}
- fprintf(stderr, "\n");
+ fprintf(stderr, EOL);
}