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