From b73890ea0daf0359f8bc24272da1f9bdf91a5940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Fri, 19 Jul 2013 12:54:34 +0000 Subject: [PATCH] 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 --- rosapps/templates/dialog/trace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rosapps/templates/dialog/trace.h b/rosapps/templates/dialog/trace.h index 7f3318e3daa..6c9ed7d5635 100644 --- a/rosapps/templates/dialog/trace.h +++ b/rosapps/templates/dialog/trace.h @@ -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