From a984eb367c032dbe2577f01238c3d1268526be70 Mon Sep 17 00:00:00 2001 From: Kacper Date: Thu, 25 Dec 2025 19:24:38 +0100 Subject: Clang-tidy fixes --- include/assert.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'include/assert.h') diff --git a/include/assert.h b/include/assert.h index 56d7d1e2..49550e39 100644 --- a/include/assert.h +++ b/include/assert.h @@ -5,14 +5,10 @@ #define assert(ignore) ((void)0) #else -#define assert(__expr) \ - ((__expr) ? \ - (void)0 : \ - __assert(__FILE__, __LINE__, __PRETTY_FUNCTION__, #__expr)) +#define assert(__expr) ((__expr) ? (void)0 : __assert(__FILE__, __LINE__, __PRETTY_FUNCTION__, #__expr)) #endif -_Noreturn void __assert(const char *_Nonnull __file, int __line, - const char *_Nonnull __func, +_Noreturn void __assert(const char *_Nonnull __file, int __line, const char *_Nonnull __func, const char *_Nonnull __expr); #endif -- cgit v1.2.3