Correct assert definition to correctly display the faulty text instead of "x"
authorManoel Trapier <godzil@godzil.net>
Thu, 21 Mar 2013 16:39:00 +0000 (17:39 +0100)
committerManoël Trapier <godzil@MacBook-Pro.home>
Wed, 24 Jun 2015 22:41:49 +0000 (23:41 +0100)
mach/proto/ncg/assert.h

index 8b0ba07..ce0d6d5 100644 (file)
@@ -8,7 +8,7 @@
 #define MACH_PROTO_NCG_ASSERT_H
 
 #ifndef NDEBUG
-#define assert(x) if(!(x)) badassertion("x",__FILE__,__LINE__)
+#define assert(x) if(!(x)) badassertion( #x ,__FILE__,__LINE__)
 #else
 #define assert(x)      /* nothing */
 #endif