From 38a234d951bfe3fe346bb967ce8d16c998aa2f45 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 7 Jun 2005 17:05:46 +0000 Subject: [PATCH] always catch exceptions SVN-Revision: 2577 --- src/main.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index acf4465ea..d31b9f682 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -417,9 +417,7 @@ void wait_for_event(float min_delay, float max_delay) int main(int argc, char** argv) { -#ifndef DEBUG // we want backtraces in debug mode so don't catch exceptions try { -#endif srand(time(0)); init_physfs(argv[0]); init_sdl(); @@ -448,8 +446,6 @@ int main(int argc, char** argv) // normal game title(); } - -#ifndef DEBUG } catch(std::exception& e) { std::cerr << "Unexpected exception: " << e.what() << std::endl; return 1; @@ -457,7 +453,6 @@ int main(int argc, char** argv) std::cerr << "Unexpected exception." << std::endl; return 1; } -#endif free_menu(); unload_shared(); -- 2.11.0