mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-31 16:20:22 +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 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user