summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2010-11-29 17:55:07 +0200
committerPerttu Ahola <celeron55@gmail.com>2010-11-29 17:55:07 +0200
commitd10627a77fe022263e2319be282fbec68e713545 (patch)
tree72b0c0d140aed99f17438c978fa3bf4238dc436b /src/main.cpp
parentd2090a32d84106815b3422bbbab5e6c9c681c152 (diff)
downloadminetest-d10627a77fe022263e2319be282fbec68e713545.tar.gz
minetest-d10627a77fe022263e2319be282fbec68e713545.tar.bz2
minetest-d10627a77fe022263e2319be282fbec68e713545.zip
Windows bug fixes
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 0452aca31..f7b2b2c6b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -474,6 +474,18 @@ public:
dstream<<DTIME<<"Enabled full viewing range"<<std::endl;
}
}
+
+ // Print debug stacks
+ if(event.KeyInput.Key == irr::KEY_KEY_P
+ && g_game_focused)
+ {
+ dstream<<"-----------------------------------------"
+ <<std::endl;
+ dstream<<DTIME<<"Printing debug stacks:"<<std::endl;
+ dstream<<"-----------------------------------------"
+ <<std::endl;
+ debug_stacks_print();
+ }
}
}
@@ -2213,7 +2225,7 @@ int main(int argc, char *argv[])
{
dstream<<DTIME<<"Connection timed out."<<std::endl;
}
-#if CATCH_EXCEPTIONS
+#if CATCH_UNHANDLED_EXCEPTIONS
/*
This is what has to be done in every thread to get suitable debug info
*/