]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/assert.hpp
xmode.rules: removing test no longer needed
[factor.git] / vm / assert.hpp
index 4b1cf8750d336ab6e68f5c8ef1e91fbfe6847a26..297e15bba8e64d540202a1563d8ff71983781d28 100644 (file)
@@ -1,16 +1,12 @@
-namespace factor
-{
-    void abort();
-}
+namespace factor { void abort(); }
 
 #ifdef FACTOR_DEBUG
-#define FACTOR_ASSERT(condition) ((condition) \
-    ? (void)0 \
-    : ( \
-        ::fprintf(stderr, "assertion \"%s\" failed: file \"%s\", line %d\n", \
-            #condition, __FILE__, __LINE__), \
-        ::factor::abort() \
-    ))
+#define FACTOR_ASSERT(condition)                                               \
+  ((condition)                                                                 \
+       ? (void)0                                                               \
+       : (::fprintf(stderr, "assertion \"%s\" failed: file \"%s\", line %d\n", \
+                    #condition, __FILE__, __LINE__),                           \
+          ::factor::abort()))
 #else
 #define FACTOR_ASSERT(condition) ((void)0)
 #endif