Further fixes for Exception class on Windows.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
c7d18db8b7
commit
168c45cb3b
|
@ -18,11 +18,16 @@ namespace ArbUt {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public:
|
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]] 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
|
#if !WINDOWS
|
||||||
backward::TraceResolver tr;
|
backward::TraceResolver tr;
|
||||||
tr.load_stacktrace(_stack);
|
tr.load_stacktrace(_stack);
|
||||||
|
|
Loading…
Reference in New Issue