summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-06-07 14:00:29 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-08 17:29:57 +0200
commitd2662df57c32464c3b0a1d0cf12a61fda822cfbd (patch)
tree7707dcb6f31b635402d0d2919aac085b3e78e87b /AK
parentc6ce7c9326f8e745e29ede503ea011f10c76fc5f (diff)
downloadserenity-d2662df57c32464c3b0a1d0cf12a61fda822cfbd.zip
LibC+AK: Remove our custom macros from <assert.h>
Other software might not expect these to be defined and behave differently if they _are_ defined, e.g. scummvm which checks if the TODO macro is defined and fails to build if it is.
Diffstat (limited to 'AK')
-rw-r--r--AK/Assertions.h8
-rw-r--r--AK/ByteBuffer.h1
-rw-r--r--AK/RefPtr.h1
3 files changed, 5 insertions, 5 deletions
diff --git a/AK/Assertions.h b/AK/Assertions.h
index e91e0f8d21..4aee5d8429 100644
--- a/AK/Assertions.h
+++ b/AK/Assertions.h
@@ -10,9 +10,7 @@
# include <Kernel/Assertions.h>
#else
# include <assert.h>
-# ifndef __serenity__
-# define VERIFY assert
-# define VERIFY_NOT_REACHED() assert(false)
-# define TODO VERIFY_NOT_REACHED
-# endif
+# define VERIFY assert
+# define VERIFY_NOT_REACHED() assert(false)
+# define TODO VERIFY_NOT_REACHED
#endif
diff --git a/AK/ByteBuffer.h b/AK/ByteBuffer.h
index 6bdfe300f6..1480a57405 100644
--- a/AK/ByteBuffer.h
+++ b/AK/ByteBuffer.h
@@ -7,6 +7,7 @@
#pragma once
+#include <AK/Assertions.h>
#include <AK/Span.h>
#include <AK/Types.h>
#include <AK/kmalloc.h>
diff --git a/AK/RefPtr.h b/AK/RefPtr.h
index 5a4ddd1fd6..66815279dc 100644
--- a/AK/RefPtr.h
+++ b/AK/RefPtr.h
@@ -6,6 +6,7 @@
#pragma once
+#include <AK/Assertions.h>
#include <AK/Atomic.h>
#include <AK/Format.h>
#include <AK/NonnullRefPtr.h>