Correct assert definition to correctly display the faulty text instead of "x"

This commit is contained in:
Manoel Trapier 2013-03-21 17:39:00 +01:00 committed by Manoël Trapier
parent 93f542eb7a
commit 3f6a9560c5

View 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