From dcadd5a52dadb244d93167dca94a747ed42e2f08 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Mon, 9 Aug 2021 14:12:59 +0200 Subject: Added ThrowLastError which accepts a std::source_location --- zencore/include/zencore/except.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'zencore/include') diff --git a/zencore/include/zencore/except.h b/zencore/include/zencore/except.h index 782dbeed0..2357ba1b5 100644 --- a/zencore/include/zencore/except.h +++ b/zencore/include/zencore/except.h @@ -4,6 +4,7 @@ #include #include +#include #include namespace zen { @@ -52,5 +53,7 @@ ThrowSystemException(const char* Message) } ZENCORE_API void ThrowLastError(std::string_view Message); +ZENCORE_API void ThrowLastError(std::string_view Message, const std::source_location& Location); + } // namespace zen -- cgit v1.2.3