aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
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/include
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/include')
-rw-r--r--zencore/include/zencore/except.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/zencore/include/zencore/except.h b/zencore/include/zencore/except.h
index aa4c1462d..486f3e380 100644
--- a/zencore/include/zencore/except.h
+++ b/zencore/include/zencore/except.h
@@ -14,6 +14,7 @@
namespace zen {
+#if ZEN_PLATFORM_WINDOWS
class WindowsException : public std::exception
{
public:
@@ -50,6 +51,7 @@ private:
};
ZENCORE_API void ThrowSystemException(HRESULT hRes, std::string_view Message);
+#endif // ZEN_PLATFORM_WINDOWS
ZENCORE_API void ThrowLastError(std::string_view Message);
ZENCORE_API void ThrowLastError(std::string_view Message, const std::source_location& Location);