summaryrefslogtreecommitdiff
path: root/indra/llcommon/llexception.h
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2024-08-20 06:30:12 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2024-08-20 06:30:12 +0300
commitc4e1b801b639c5408ec6e6aae615a4bf1e673efe (patch)
tree91dec009c5581dd3115027a5e58a38486927e698 /indra/llcommon/llexception.h
parent3a4720d1f523ca8ebee0d963604c236c08980eae (diff)
Post-merge build fix (#2059)
Diffstat (limited to 'indra/llcommon/llexception.h')
-rw-r--r--indra/llcommon/llexception.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/llcommon/llexception.h b/indra/llcommon/llexception.h
index f58a553eb3..2a8c18507a 100644
--- a/indra/llcommon/llexception.h
+++ b/indra/llcommon/llexception.h
@@ -17,6 +17,9 @@
#include <boost/exception/exception.hpp>
#include <boost/throw_exception.hpp>
#include <boost/current_function.hpp>
+#if LL_WINDOWS
+#include <excpt.h>
+#endif // LL_WINDOWS
// "Found someone who can comfort me
// But there are always exceptions..."
@@ -180,6 +183,8 @@ auto catcher(TRYCODE&& trycode, HANDLER&& handler)
std::forward<HANDLER>(handler));
}
+[[noreturn]] void rethrow(U32 code, const std::string& stacktrace);
+
// monadic variant specifies try(), assumes default filter and handler
template <typename TRYCODE>
auto catcher(TRYCODE&& trycode)
@@ -187,8 +192,6 @@ auto catcher(TRYCODE&& trycode)
return catcher(std::forward<TRYCODE>(trycode), rethrow);
}
-[[noreturn]] void rethrow(U32 code, const std::string& stacktrace);
-
#else // not LL_WINDOWS -----------------------------------------------------
template <typename TRYCODE, typename FILTER, typename HANDLER>