X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLexical-Types.git;a=blobdiff_plain;f=xsh%2Futil.h;fp=xsh%2Futil.h;h=500472364a3545615e9b38ecd5781d318a1ce177;hp=599dbf4407e4cd63fca47549e44e6dc1e04d21ee;hb=ceacb239262d929bee663a3d996db7e11c19a61e;hpb=6bb16e5da291213a4ec80d062d2d7b14469f8c2a diff --git a/xsh/util.h b/xsh/util.h index 599dbf4..5004723 100644 --- a/xsh/util.h +++ b/xsh/util.h @@ -13,7 +13,12 @@ # 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__), \