X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fdebug%2Fbacktrace.h;h=98aa4d8cdd9736291253cecf403b10d75bf43b2a;hp=3f32ade0c4558478f633e93f02f9e9e29b261024;hb=HEAD;hpb=44da9fc9afb6b7e49c1558c5572213a1e6f401e8 diff --git a/source/debug/backtrace.h b/source/debug/backtrace.h index 3f32ade..b8e06af 100644 --- a/source/debug/backtrace.h +++ b/source/debug/backtrace.h @@ -4,16 +4,17 @@ #include #include #include +#include namespace Msp { namespace Debug { -class Backtrace +class MSPCORE_API Backtrace { public: struct StackFrame { - void *address; + void *address = nullptr; std::string file; std::string symbol; }; @@ -27,8 +28,8 @@ public: static Backtrace create(); }; -std::ostream &operator<<(std::ostream &, const Backtrace &); -std::ostream &operator<<(std::ostream &, const Backtrace::StackFrame &); +MSPCORE_API std::ostream &operator<<(std::ostream &, const Backtrace &); +MSPCORE_API std::ostream &operator<<(std::ostream &, const Backtrace::StackFrame &); } // namespace Debug } // namespace Msp