From: Manoel Trapier Date: Thu, 21 Mar 2013 16:39:00 +0000 (+0100) Subject: Correct assert definition to correctly display the faulty text instead of "x" X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=3f6a9560c57d44b8a2d099a47bdd0f084b128544;p=ack.git Correct assert definition to correctly display the faulty text instead of "x" --- diff --git a/mach/proto/ncg/assert.h b/mach/proto/ncg/assert.h index 8b0ba078f..ce0d6d509 100644 --- a/mach/proto/ncg/assert.h +++ b/mach/proto/ncg/assert.h @@ -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