--- Gnu-Mach/kern/assert.h 2020/09/02 04:45:11 1.1.1.3 +++ Gnu-Mach/kern/assert.h 2020/09/02 04:47:25 1.1.1.4 @@ -36,19 +36,14 @@ #endif #if MACH_ASSERT -extern void Assert(char *exp, char *filename, int line) __attribute__ ((noreturn)); +extern void Assert(const char *exp, const char *filename, int line) __attribute__ ((noreturn)); #define assert(ex) \ -MACRO_BEGIN \ - if (!(ex)) \ - Assert(#ex, __FILE__, __LINE__); \ -MACRO_END + ((ex) \ + ? (void) (0) \ + : Assert (#ex, __FILE__, __LINE__)) -#ifdef lint -#define assert_static(x) -#else /* lint */ #define assert_static(x) assert(x) -#endif /* lint */ #else /* MACH_ASSERT */ #define assert(ex)