int main(int argc, char * argv[])
{
+#ifndef DEBUG
try {
+#endif
st_directory_setup();
parseargs(argc, argv);
}
else if (level_startup_file)
{
- GameSession session(level_startup_file, 1, ST_GL_LOAD_LEVEL_FILE);
+ GameSession session(level_startup_file, ST_GL_LOAD_LEVEL_FILE);
session.run();
}
else
Surface::debug_check();
#endif
st_shutdown();
+#ifndef DEBUG // we want to see the backtrace in gdb when in debug mode
}
catch (SuperTuxException &e)
{
{
std:: cerr << "Unhandled exception: " << e.what() << std::endl;
}
+#endif
return 0;
}