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).aspx , http://www.osronline.com/DDKx/ddtools/debugfns_41yr.htm and google...) (Part 1/X)

svn path=/trunk/; revision=59508
This commit is contained in:
Hermès Bélusca-Maïto 2013-07-19 12:54:34 +00:00
parent 00b4f33ecd
commit b73890ea0d

View file

@ -21,7 +21,7 @@
} \
} \
#define ASSERTMSG(exp, msg) \
#define ASSERTMSG(msg, exp) \
{ \
if (!(exp)) { \
Assert(#exp, __FILE__, __LINE__, msg); \
@ -45,7 +45,7 @@
#ifndef ASSERT
#define ASSERT(exp)
#define ASSERTMSG(exp, msg)
#define ASSERTMSG(msg, exp)
#endif
#define TRACE 0 ? (void)0 : Trace