From f8d9ac5d13dd37b8b57af0478e77ba1e75c813aa Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Tue, 11 May 2021 13:05:39 +0200 Subject: Adding zenservice code --- zencore/except.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 zencore/except.cpp (limited to 'zencore/except.cpp') diff --git a/zencore/except.cpp b/zencore/except.cpp new file mode 100644 index 000000000..b02122f58 --- /dev/null +++ b/zencore/except.cpp @@ -0,0 +1,17 @@ +// Copyright Epic Games, Inc. All Rights Reserved. + +#include + +namespace zen { + +void +ThrowSystemException([[maybe_unused]] HRESULT hRes, [[maybe_unused]] const char* Message) +{ + // TODO + + int ErrValue = hRes; + + throw std::system_error(ErrValue, std::system_category(), Message); +} + +} // namespace zen -- cgit v1.2.3