From: Côme Chilliet Date: Sat, 10 Dec 2016 18:00:09 +0000 (+0700) Subject: Disabling exception catching when building debug, to ease gdb use X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=6cbdc43a4b29ac50aa9239adacf63ccc5a68f4f3;p=lugaru.git Disabling exception catching when building debug, to ease gdb use --- 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 }