Author: infinoid
Date: Tue Jan  6 22:01:22 2009
New Revision: 35094

Modified:
   trunk/include/parrot/exceptions.h

Log:
commit c86951f2c1b747fb50b14b1c2516aa551d24163f

    Apply patch from jimmy++ to disable ASSERT_ARGS() when NDEBUG is defined.

Modified: trunk/include/parrot/exceptions.h
==============================================================================
--- trunk/include/parrot/exceptions.h   (original)
+++ trunk/include/parrot/exceptions.h   Tue Jan  6 22:01:22 2009
@@ -277,16 +277,18 @@
 #ifdef NDEBUG
 #  define PARROT_ASSERT(x) ((void)0)
 #  define PARROT_ASSERT_ARG(x) (0)
+#  define ASSERT_ARGS(a)
 #else
 #  define PARROT_ASSERT(x) (x) ? ((void)0) : Parrot_confess(#x, __FILE__, 
__LINE__)
 #  define PARROT_ASSERT_ARG(x) ((x) ? (0) : (Parrot_confess(#x, __FILE__, 
__LINE__), 0))
-#endif
 
-#ifdef _MSC_VER
-#  define ASSERT_ARGS(a)
-#else
-#  define ASSERT_ARGS(a) ASSERT_ARGS_ ## a ;
-#endif
+#  ifdef _MSC_VER
+#    define ASSERT_ARGS(a)
+#  else
+#    define ASSERT_ARGS(a) ASSERT_ARGS_ ## a ;
+#  endif /* _MSC_VER */
+
+#endif /* NDEBUG */
 
 
 #endif /* PARROT_EXCEPTIONS_H_GUARD */

Reply via email to