Author: hbelusca
Date: Fri Jul 19 13:03:42 2013
New Revision: 59509
URL:
http://svn.reactos.org/svn/reactos?rev=59509&view=rev
Log:
Fix ASSERTMSG definition and usage (which is: ASSERTMSG(Message, expression) and not the
other way around, see
http://msdn.microsoft.com/en-us/library/windows/hardware/ff542113(v=vs.85).… ,
http://www.osronline.com/DDKx/ddtools/debugfns_41yr.htm and google...) (Part 2/X)
WARNING: Might break builds now.
Modified:
trunk/reactos/include/host/typedefs.h
trunk/reactos/include/reactos/debug.h
Modified: trunk/reactos/include/host/typedefs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/host/typedefs.h?re…
==============================================================================
--- trunk/reactos/include/host/typedefs.h [iso-8859-1] (original)
+++ trunk/reactos/include/host/typedefs.h [iso-8859-1] Fri Jul 19 13:03:42 2013
@@ -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
Modified: trunk/reactos/include/reactos/debug.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/debug.h?re…
==============================================================================
--- trunk/reactos/include/reactos/debug.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/debug.h [iso-8859-1] Fri Jul 19 13:03:42 2013
@@ -79,9 +79,9 @@
#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