]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/cocoa/errordialog.cpp
Fix the cocoa error dialog so that it actually compiles
[libs/gui.git] / source / graphics / cocoa / errordialog.cpp
1 #include <typeinfo>
2 #include <msp/core/application.h>
3 #include <msp/debug/demangle.h>
4 #include "cocoaerrordialog.h"
5 #include "errordialog.h"
6
7 using namespace std;
8
9 namespace Msp {
10 namespace Graphics {
11
12 bool ErrorDialog::report_uncaught_exception(const exception &e) const
13 {
14         (void)display;
15         if(Application::get_data())
16         {
17                 string type = Debug::demangle(typeid(e).name());
18                 run_alert(type.c_str(), e.what());
19                 return true;
20         }
21         return false;
22 }
23
24 } // namespace Graphics
25 } // namespace Msp