diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-08-05 17:22:29 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-08-05 22:27:04 -0700 |
commit | c77244152327e2223e55144a463094790d835933 (patch) | |
tree | 33363317bab89d55fe54551e0ed22090053cbd67 /perl.h | |
parent | b166eea9cd004d916f7322015c1c4337c549ac08 (diff) | |
download | perl-c77244152327e2223e55144a463094790d835933.tar.gz |
assert_(...)
This new macro expands to ‘assert(...),’ (with a trailing comma) under
debugging builds; the empty string otherwise.
It allows for the removal of some #ifdef DEBUGGINGs, which could not be
avoided otherwise.
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3868,6 +3868,11 @@ Gid_t getegid (void); #ifndef assert # define assert(what) Perl_assert(what) #endif +#ifdef DEBUGGING +# define assert_(what) assert(what), +#else +# define assert_(what) +#endif struct ufuncs { I32 (*uf_val)(pTHX_ IV, SV*); |