[svn:parrot] r38610 - in trunk: include/parrot tools/dev

Infinoid at svn.parrot.org Infinoid at svn.parrot.org
Fri May 8 18:28:44 UTC 2009


Author: Infinoid
Date: Fri May  8 18:28:44 2009
New Revision: 38610
URL: https://trac.parrot.org/parrot/changeset/38610

Log:
[cage] ASSERT_ARGS is gcc-specific, so instead of blacklisting MSVC, whitelist gcc.  particle++ for suggesting this approach.
This should fix rrauenza++'s issue with the HPUX compiler in TT #647.

Modified:
   trunk/include/parrot/exceptions.h
   trunk/tools/dev/nopaste.pl

Modified: trunk/include/parrot/exceptions.h
==============================================================================
--- trunk/include/parrot/exceptions.h	Fri May  8 17:47:04 2009	(r38609)
+++ trunk/include/parrot/exceptions.h	Fri May  8 18:28:44 2009	(r38610)
@@ -283,11 +283,11 @@
 #  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))
 
-#  ifdef _MSC_VER
-#    define ASSERT_ARGS(a)
-#  else
+#  ifdef __GNUC__
 #    define ASSERT_ARGS(a) ASSERT_ARGS_ ## a ;
-#  endif /* _MSC_VER */
+#  else
+#    define ASSERT_ARGS(a)
+#  endif /* __GNUC__ */
 
 #endif /* NDEBUG */
 

Modified: trunk/tools/dev/nopaste.pl
==============================================================================
--- trunk/tools/dev/nopaste.pl	Fri May  8 17:47:04 2009	(r38609)
+++ trunk/tools/dev/nopaste.pl	Fri May  8 18:28:44 2009	(r38610)
@@ -4,8 +4,6 @@
 # $Id$
 
 use 5.008;
-use strict;
-use warnings;
 
 use WWW::Mechanize;
 use Getopt::Std;


More information about the parrot-commits mailing list