Fix ASSERTMSG definition and usage (which is: ASSERTMSG(Message, expression) and...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 19 Jul 2013 13:03:42 +0000 (13:03 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 19 Jul 2013 13:03:42 +0000 (13:03 +0000)
WARNING: Might break builds now.

svn path=/trunk/; revision=59509

reactos/include/host/typedefs.h
reactos/include/reactos/debug.h

index 49de4f3..2b60d3d 100644 (file)
@@ -29,7 +29,7 @@
 /* Basic definitions */
 #define UNIMPLEMENTED { printf("%s unimplemented\n", __FUNCTION__); exit(1); }
 #define ASSERT(x) assert(x)
-#define ASSERTMSG(x, m) assert(x)
+#define ASSERTMSG(m, x) assert(x)
 #define DPRINT if (0) printf
 #define DPRINT1 printf
 
index f6b38d3..f467dc8 100644 (file)
@@ -79,9 +79,9 @@ RtlAssert(
 
 #ifndef ASSERTMSG
 #ifndef NASSERT
-#define ASSERTMSG(x,m) if (!(x)) { RtlAssert((PVOID)#x, __FILE__, __LINE__, m); }
+#define ASSERTMSG(m, x) if (!(x)) { RtlAssert((PVOID)#x, __FILE__, __LINE__, m); }
 #else
-#define ASSERTMSG(x)
+#define ASSERTMSG(m, x)
 #endif
 #endif