mirror of
https://github.com/CDevJoud/Minecraft-Community-Edition.git
synced 2026-07-16 04:11:25 +00:00
Update assert to use MCE_ERROR
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <print>
|
||||
#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(...)
|
||||
|
||||
Reference in New Issue
Block a user