aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-03 10:53:07 +0200
committerStefan Boberg <[email protected]>2021-09-03 10:53:07 +0200
commit82394c6f28c6fed9b1cbde889d72f61b66be50ba (patch)
tree42fd79b3443a64db8476761a00a125f471379a85
parentDisallow copying of ChunkingLinearAllocator (diff)
downloadzen-82394c6f28c6fed9b1cbde889d72f61b66be50ba.tar.xz
zen-82394c6f28c6fed9b1cbde889d72f61b66be50ba.zip
Moved out AssertException constructor/destructor into cpp
-rw-r--r--zencore/include/zencore/zencore.h3
-rw-r--r--zencore/zencore.cpp10
2 files changed, 12 insertions, 1 deletions
diff --git a/zencore/include/zencore/zencore.h b/zencore/include/zencore/zencore.h
index 65458e932..206046f0b 100644
--- a/zencore/include/zencore/zencore.h
+++ b/zencore/include/zencore/zencore.h
@@ -55,7 +55,8 @@ namespace zen {
class AssertException : public std::exception
{
public:
- AssertException(const char* Msg) : m_Msg(Msg) {}
+ AssertException(const char* Msg);
+ ~AssertException();
[[nodiscard]] virtual char const* what() const override { return m_Msg.c_str(); }
diff --git a/zencore/zencore.cpp b/zencore/zencore.cpp
index bd3379c1c..0e03f20ef 100644
--- a/zencore/zencore.cpp
+++ b/zencore/zencore.cpp
@@ -33,6 +33,16 @@ IsPointerToStack(const void* ptr)
return (intPtr - low) < (high - low);
}
+AssertException::AssertException(const char* Msg) : m_Msg(Msg)
+{
+}
+
+AssertException::~AssertException()
+{
+}
+
+//////////////////////////////////////////////////////////////////////////
+
static int s_ApplicationExitCode = 0;
static bool s_ApplicationExitRequested;