Importing data items directly is tricky on MSVC, so better to hide them
behind functions.
_data = data;
}
+void *Application::get_data()
+{
+ return _data;
+}
+
+const char *Application::get_argv0()
+{
+ return _argv0;
+}
+
+const std::string &Application::get_name()
+{
+ return _name;
+}
+
int Application::main()
{
done = false;
Application::run(). */
static void set_startup_info(const char *, void *);
- static void *get_data() { return _data; }
- static const char *get_argv0() { return _argv0; }
- static const std::string &get_name() { return _name; }
+ static void *get_data();
+ static const char *get_argv0();
+ static const std::string &get_name();
protected:
/** Default main loop. Calls tick() repeatedly until exit() is called. A
_current = _prev;
}
+const ErrorReporter *ErrorReporter::get_current()
+{
+ return _current;
+}
+
} // namespace Debug
} // namespace Msp
public:
virtual ~ErrorReporter();
- static const ErrorReporter *get_current() { return _current; }
+ static const ErrorReporter *get_current();
virtual bool report_uncaught_exception(const std::exception &) const = 0;
};