diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-22 11:00:14 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-22 11:00:14 +0000 |
commit | ec5b5dfca31a3c2ec1a101e38f57f47c3952acb8 (patch) | |
tree | d4161725fc218e93d7cc7042253fc4fa77bf476c /crawl-ref/source/clua.cc | |
parent | a54e6bb23df5211c2a5b59037f355c43e795fa05 (diff) | |
download | crawl-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.cc | 8 |
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); } |