From 6cbdc43a4b29ac50aa9239adacf63ccc5a68f4f3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Sun, 11 Dec 2016 01:00:09 +0700 Subject: [PATCH] Disabling exception catching when building debug, to ease gdb use --- Source/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/main.cpp b/Source/main.cpp index 4ff4ebc..4ad6853 100644 --- a/Source/main.cpp +++ b/Source/main.cpp @@ -626,7 +626,9 @@ int main(int argc, char **argv) LOGFUNC; +#ifndef NDEBUG try { +#endif { newGame(); @@ -677,6 +679,7 @@ int main(int argc, char **argv) CleanUp (); return 0; +#ifndef NDEBUG } catch (const std::exception& error) { CleanUp(); @@ -689,4 +692,5 @@ int main(int argc, char **argv) return -1; } +#endif } -- 2.39.2