From: Christoph Sommer Date: Tue, 1 Jul 2008 20:06:02 +0000 (+0000) Subject: replaced main.cpp's NO_CATCH define by DEBUG X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f6e58da379b45081837d6c2deb3510e8c5825f02;p=supertux.git replaced main.cpp's NO_CATCH define by DEBUG SVN-Revision: 5643 --- 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;