mirror of
https://github.com/reactos/reactos.git
synced 2024-08-25 04:38:43 +00:00
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 2/X)
WARNING: Might break builds now. svn path=/trunk/; revision=59509
This commit is contained in:
parent
b73890ea0d
commit
1701110528
|
@ -29,7 +29,7 @@
|
||||||
/* Basic definitions */
|
/* Basic definitions */
|
||||||
#define UNIMPLEMENTED { printf("%s unimplemented\n", __FUNCTION__); exit(1); }
|
#define UNIMPLEMENTED { printf("%s unimplemented\n", __FUNCTION__); exit(1); }
|
||||||
#define ASSERT(x) assert(x)
|
#define ASSERT(x) assert(x)
|
||||||
#define ASSERTMSG(x, m) assert(x)
|
#define ASSERTMSG(m, x) assert(x)
|
||||||
#define DPRINT if (0) printf
|
#define DPRINT if (0) printf
|
||||||
#define DPRINT1 printf
|
#define DPRINT1 printf
|
||||||
|
|
||||||
|
|
|
@ -79,9 +79,9 @@ RtlAssert(
|
||||||
|
|
||||||
#ifndef ASSERTMSG
|
#ifndef ASSERTMSG
|
||||||
#ifndef NASSERT
|
#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
|
#else
|
||||||
#define ASSERTMSG(x)
|
#define ASSERTMSG(m, x)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue