]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/assert.h
xnu-344.tar.gz
[apple/xnu.git] / osfmk / kern / assert.h
index b7c9317e7270960f5ce2c1c568c635623ab1f517..42718d5cabb370cd312d4a7d9c5fa75941daf700 100644 (file)
@@ -69,11 +69,8 @@ extern void  Assert(
 
 #if    MACH_ASSERT
 
-#define assert(ex)                                                     \
-MACRO_BEGIN                                                            \
-       if (!(ex))                                                      \
-               Assert(__FILE__, __LINE__, # ex);                       \
-MACRO_END
+#define assert(ex)  \
+    ((ex) ? (void)0 : Assert(__FILE__, __LINE__, # ex))
 #define        assert_static(x)        assert(x)
 
 #else  /* MACH_ASSERT */