aboutsummaryrefslogtreecommitdiff
path: root/zencore/except.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-09-15 12:35:40 +0200
committerMartin Ridgers <[email protected]>2021-09-15 12:35:40 +0200
commit38d1bba543e16905576fda7aa0c245fa67ac7372 (patch)
tree40076a04997966fd156c1f2bfbf6875a234dcf83 /zencore/except.cpp
parentPOSIX implementation of ThrowSystemException using std::system_error (diff)
downloadzen-38d1bba543e16905576fda7aa0c245fa67ac7372.tar.xz
zen-38d1bba543e16905576fda7aa0c245fa67ac7372.zip
Added #ifdef condition around Windows-specific exception handling
Diffstat (limited to 'zencore/except.cpp')
-rw-r--r--zencore/except.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/zencore/except.cpp b/zencore/except.cpp
index 0d31885e1..d57b539cd 100644
--- a/zencore/except.cpp
+++ b/zencore/except.cpp
@@ -5,6 +5,8 @@
namespace zen {
+#if ZEN_PLATFORM_WINDOWS
+
void
ThrowSystemException([[maybe_unused]] HRESULT hRes, [[maybe_unused]] std::string_view Message)
{
@@ -18,6 +20,8 @@ ThrowSystemException([[maybe_unused]] HRESULT hRes, [[maybe_unused]] std::string
}
}
+#endif // ZEN_PLATFORM_WINDOWS
+
void
ThrowLastError(std::string_view Message)
{