1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:37:44 +00:00

LibC: Unbreak assert.h when compiled with a C compiler :^)

This commit is contained in:
Andreas Kling 2020-12-23 21:23:41 +01:00
parent 6d4fd02b92
commit 79818bbf8e

View file

@ -41,7 +41,7 @@ __attribute__((noreturn)) void __assertion_failed(const char* msg);
} while (0) } while (0)
# define ASSERT_NOT_REACHED() assert(false) # define ASSERT_NOT_REACHED() assert(false)
#else #else
# define assert(expr) (void(0)) # define assert(expr) ((void)(0))
# define ASSERT_NOT_REACHED() CRASH() # define ASSERT_NOT_REACHED() CRASH()
#endif #endif