mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 05:14:45 +00:00
Removed try{}catch in DEBUGMODE to get the exception in the debugger.
This commit is contained in:
parent
bb689258ff
commit
2d3cfe116b
12
src/main.cpp
12
src/main.cpp
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user