Author: chromatic
Date: Wed Mar 19 16:02:57 2008
New Revision: 26499

Modified:
   trunk/include/parrot/exceptions.h

Log:
[src] Make PARROT_ASSERT() somewhat cheaper in the default case.  It's around a
6.5% speedup in some of the Tcl tests, and I suspect that's likely true
elsewhere.

Modified: trunk/include/parrot/exceptions.h
==============================================================================
--- trunk/include/parrot/exceptions.h   (original)
+++ trunk/include/parrot/exceptions.h   Wed Mar 19 16:02:57 2008
@@ -304,11 +304,10 @@
 #ifdef NDEBUG
 #  define PARROT_ASSERT(x) ((void)0)
 #else
-#  define PARROT_ASSERT(x) Parrot_assert((INTVAL)(x), #x, __FILE__, __LINE__)
+#  define PARROT_ASSERT(x) (x) ? ((void)0) : Parrot_confess(#x, __FILE__, 
__LINE__)
 #endif
 
 
-
 #endif /* PARROT_EXCEPTIONS_H_GUARD */
 
 /*

Reply via email to