Further fixes for Exception class on Windows.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2020-08-15 14:25:27 +02:00
parent c7d18db8b7
commit 168c45cb3b
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 7 additions and 2 deletions

View File

@ -18,11 +18,16 @@ namespace ArbUt {
#endif
public:
explicit Exception(std::string msg) : _msg(std::move(msg)) { _stack.load_here(9); }
explicit Exception(std::string msg) : _msg(std::move(msg)) {
#if !WINDOWS
_stack.load_here(9);
#endif
}
[[nodiscard]] const char* what() const _GLIBCXX_TXN_SAFE_DYN _GLIBCXX_NOTHROW override { return _msg.c_str(); }
[[nodiscard]] std::string GetStacktrace(size_t depth = 6, bool include_addr = true) const {
[[nodiscard]] std::string GetStacktrace([[maybe_unused]] size_t depth = 6,
[[maybe_unused]] bool include_addr = true) const {
#if !WINDOWS
backward::TraceResolver tr;
tr.load_stacktrace(_stack);