X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdebug%2Ferrorreporter.h;h=ce14c637a1d74d5870e5fa2708a58ce85c940497;hb=refs%2Fheads%2Fwip;hp=b0385ff15d1c31ce2a0ea769d569b30b9fae37a5;hpb=f042fd992170ee8a50a7f596f1c9cdd9600b8583;p=libs%2Fcore.git diff --git a/source/debug/errorreporter.h b/source/debug/errorreporter.h index b0385ff..ce14c63 100644 --- a/source/debug/errorreporter.h +++ b/source/debug/errorreporter.h @@ -2,23 +2,25 @@ #define MSP_DEBUG_ERRORREPORTER_H_ #include +#include +#include namespace Msp { namespace Debug { -class ErrorReporter +class MSPCORE_API ErrorReporter: private NonCopyable { private: - ErrorReporter *prev; + ErrorReporter *_prev = nullptr; - static ErrorReporter *current; + static ErrorReporter *_current; protected: ErrorReporter(); public: virtual ~ErrorReporter(); - static const ErrorReporter *get_current() { return current; } + static const ErrorReporter *get_current() { return _current; } virtual bool report_uncaught_exception(const std::exception &) const = 0; };