From f8e00260ce570314eb41f91ceda41d8320abef3e Mon Sep 17 00:00:00 2001 From: BendedWills Date: Thu, 5 Mar 2026 19:28:39 -0600 Subject: [PATCH] Update assert to use MCE_ERROR --- Minecraft-Community-Edition/Common/Assert.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Minecraft-Community-Edition/Common/Assert.hpp b/Minecraft-Community-Edition/Common/Assert.hpp index b09a972..1061716 100644 --- a/Minecraft-Community-Edition/Common/Assert.hpp +++ b/Minecraft-Community-Edition/Common/Assert.hpp @@ -1,6 +1,6 @@ #pragma once -#include +#include "IO/Logger.hpp" #include "Platform.hpp" #ifndef NDEBUG @@ -11,7 +11,7 @@ #define MCE_DEBUGBREAK() raise(SIGTRAP) #endif -#define MCE_ASSERT(check, ...) { if (!(check)) { std::println(stderr, __VA_ARGS__); MCE_DEBUGBREAK(); } } +#define MCE_ASSERT(check, ...) { if (!(check)) { MCE_ERROR(__VA_ARGS__); MCE_DEBUGBREAK(); } } #else #define MCE_DEBUGBREAK() #define MCE_ASSERT(...)