X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdebug%2Fbacktrace.h;h=b8e06af27b9c400d1e6f3b741627a0e6e716ee04;hb=HEAD;hp=3f32ade0c4558478f633e93f02f9e9e29b261024;hpb=44da9fc9afb6b7e49c1558c5572213a1e6f401e8;p=libs%2Fcore.git 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