diff options
| author | Stefan Boberg <[email protected]> | 2021-09-03 10:53:07 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-03 10:53:07 +0200 |
| commit | 82394c6f28c6fed9b1cbde889d72f61b66be50ba (patch) | |
| tree | 42fd79b3443a64db8476761a00a125f471379a85 | |
| parent | Disallow copying of ChunkingLinearAllocator (diff) | |
| download | zen-82394c6f28c6fed9b1cbde889d72f61b66be50ba.tar.xz zen-82394c6f28c6fed9b1cbde889d72f61b66be50ba.zip | |
Moved out AssertException constructor/destructor into cpp
| -rw-r--r-- | zencore/include/zencore/zencore.h | 3 | ||||
| -rw-r--r-- | zencore/zencore.cpp | 10 |
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; |