diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-06-07 14:00:29 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-08 17:29:57 +0200 |
commit | d2662df57c32464c3b0a1d0cf12a61fda822cfbd (patch) | |
tree | 7707dcb6f31b635402d0d2919aac085b3e78e87b /Userland/Libraries/LibC | |
parent | c6ce7c9326f8e745e29ede503ea011f10c76fc5f (diff) | |
download | serenity-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 'Userland/Libraries/LibC')
-rw-r--r-- | Userland/Libraries/LibC/assert.h | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibC/pthread_forward.cpp | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/Userland/Libraries/LibC/assert.h b/Userland/Libraries/LibC/assert.h index 1a929e067a..b9756a46e8 100644 --- a/Userland/Libraries/LibC/assert.h +++ b/Userland/Libraries/LibC/assert.h @@ -19,7 +19,6 @@ __BEGIN_DECLS if (__builtin_expect(!(expr), 0)) \ __assertion_failed(#expr "\n" __FILE__ ":" __stringify(__LINE__)); \ } while (0) -# define VERIFY_NOT_REACHED() assert(false) #else # define assert(expr) ((void)(0)) # define VERIFY_NOT_REACHED() _abort() @@ -27,9 +26,6 @@ __BEGIN_DECLS [[noreturn]] void _abort(); -#define VERIFY assert -#define TODO VERIFY_NOT_REACHED - #ifndef __cplusplus # define static_assert _Static_assert #endif diff --git a/Userland/Libraries/LibC/pthread_forward.cpp b/Userland/Libraries/LibC/pthread_forward.cpp index b379c6ca97..e610613cbb 100644 --- a/Userland/Libraries/LibC/pthread_forward.cpp +++ b/Userland/Libraries/LibC/pthread_forward.cpp @@ -4,7 +4,7 @@ * SPDX-License-Identifier: BSD-2-Clause */ -#include <LibC/assert.h> +#include <AK/Assertions.h> #include <LibC/bits/pthread_forward.h> static PthreadFunctions s_pthread_functions; |