From f6e58da379b45081837d6c2deb3510e8c5825f02 Mon Sep 17 00:00:00 2001 From: Christoph Sommer Date: Tue, 1 Jul 2008 20:06:02 +0000 Subject: [PATCH] replaced main.cpp's NO_CATCH define by DEBUG SVN-Revision: 5643 --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ed1317e76..d4da71581 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -528,7 +528,7 @@ int main(int argc, char** argv) { int result = 0; -#ifndef NO_CATCH +#ifndef DEBUG try { #endif @@ -608,7 +608,7 @@ int main(int argc, char** argv) //init_rand(); PAK: this call might subsume the above 3, but I'm chicken! main_loop->run(context); -#ifndef NO_CATCH +#ifndef DEBUG } catch(std::exception& e) { log_fatal << "Unexpected exception: " << e.what() << std::endl; result = 1; -- 2.11.0