Pārlūkot izejas kodu

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

Manoel Trapier 11 gadi atpakaļ
vecāks
revīzija
3f6a9560c5
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      mach/proto/ncg/assert.h

+ 1 - 1
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