Removed try{}catch in DEBUGMODE to get the exception in the debugger.

This commit is contained in:
David Capello 2010-03-07 11:49:56 -02:00
parent bb689258ff
commit 2d3cfe116b

View File

@ -62,13 +62,23 @@ public:
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
int status = 1; // 1 = error int status = 1; // 1 = error
#ifndef DEBUGMODE
try { try {
#endif
Allegro allegro; Allegro allegro;
#ifndef DEBUGMODE
try { try {
#endif DEBUGMODE
Jinete jinete; Jinete jinete;
App app(argc, argv); App app(argc, argv);
status = app.run(); status = app.run();
#ifndef DEBUGMODE
} }
catch (jexception& e) { catch (jexception& e) {
e.show(); e.show();
@ -83,6 +93,8 @@ int main(int argc, char* argv[])
catch (...) { catch (...) {
printf("Uncaught exception"); printf("Uncaught exception");
} }
#endif
return status; return status;
} }