]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - xsh/util.h
Fix the build on perl 5.8.0
[perl/modules/Scope-Upper.git] / xsh / util.h
index dcc142c79066a5d532afbe31691d5cfc41d82279..2e4009212e9567eee0e31b3110bf64efeffb35e6 100644 (file)
 # if XSH_HAS_PERL(5, 8, 9) || XSH_HAS_PERL(5, 9, 3)
 #  define XSH_ASSERT(C) assert(C)
 # else
-#  define XSH_ASSERT(C) PERL_DEB( \
+#  ifdef PERL_DEB
+#   define XSH_DEB(X) PERL_DEB(X)
+#  else
+#   define XSH_DEB(X) (X)
+#  endif
+#  define XSH_ASSERT(C) XSH_DEB( \
    ((C) ? ((void) 0)           \
         : (Perl_croak_nocontext("Assertion %s failed: file \"" __FILE__  \
                                  "\", line %d", STRINGIFY(C), __LINE__), \