From a015ad54a70c381af452ad9b53a0e7dfb959dc1e Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Thu, 12 Sep 2024 14:51:18 +0200 Subject: [PATCH] Added warning about windows.h. --- source/mijin/debug/assert.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/mijin/debug/assert.hpp b/source/mijin/debug/assert.hpp index 6c0b90f..033515f 100644 --- a/source/mijin/debug/assert.hpp +++ b/source/mijin/debug/assert.hpp @@ -108,6 +108,10 @@ if (!static_cast(condition)) \ // public types // +#if defined(ERROR) +#error "Someone included windows.h! Include mijin/util/winundef.h." +#endif + enum class AssertionResult { ABORT = -1, // call std::abort()