develooper Front page | perl.cvs.parrot | Postings from January 2009

[svn:parrot] r35094 - trunk/include/parrot

From:
infinoid
Date:
January 6, 2009 22:01
Subject:
[svn:parrot] r35094 - trunk/include/parrot
Message ID:
20090107060123.7585ECB9F9@x12.develooper.com
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 */



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About