diff options
| author | Stefan Boberg <[email protected]> | 2021-05-11 13:05:39 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-05-11 13:05:39 +0200 |
| commit | f8d9ac5d13dd37b8b57af0478e77ba1e75c813aa (patch) | |
| tree | 1daf7621e110d48acd5e12e3073ce48ef0dd11b2 /zencore/except.cpp | |
| download | zen-f8d9ac5d13dd37b8b57af0478e77ba1e75c813aa.tar.xz zen-f8d9ac5d13dd37b8b57af0478e77ba1e75c813aa.zip | |
Adding zenservice code
Diffstat (limited to 'zencore/except.cpp')
| -rw-r--r-- | zencore/except.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
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 <zencore/except.h> + +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 |