From 097d76f0ac43324a641857ae607c74f236363da5 Mon Sep 17 00:00:00 2001
From: Recolic Keghart <root@recolic.net>
Date: Sat, 26 Sep 2020 17:32:10 +0800
Subject: [PATCH] log.hpp now check the DEBUG macro

---
 log.hpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/log.hpp b/log.hpp
index 10b6bab..4e77cfc 100644
--- a/log.hpp
+++ b/log.hpp
@@ -30,6 +30,11 @@
 #undef ERROR
 #endif
 
+#ifdef DEBUG
+#pragma message (": warning Macro_pollution: You MUST NOT define the macro `DEBUG`. I've undefined it here.")
+#undef DEBUG
+#endif
+
 namespace rlib {
     using namespace rlib::literals;
 
-- 
GitLab