From 3f6a9560c57d44b8a2d099a47bdd0f084b128544 Mon Sep 17 00:00:00 2001 From: Manoel Trapier Date: Thu, 21 Mar 2013 17:39:00 +0100 Subject: [PATCH] Correct assert definition to correctly display the faulty text instead of "x" --- mach/proto/ncg/assert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1