diff options
author | Karl Williamson <khw@cpan.org> | 2019-04-19 11:05:41 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-04-20 00:37:35 -0600 |
commit | 6a6bfa62138897ddeb159d06ac1dc6c9930564f6 (patch) | |
tree | 83fa00cb1f5d58b350185b49bec001d693fcf9fd /dist | |
parent | 1eff2a3bdc2156a635d357cfddb9b9ffe4dc0366 (diff) | |
download | perl-6a6bfa62138897ddeb159d06ac1dc6c9930564f6.tar.gz |
Provide __ASSERT_
This is needed by future additions. No test can be provided because it
would entail crashing the interpreter.
Diffstat (limited to 'dist')
-rw-r--r-- | dist/Devel-PPPort/Changes | 1 | ||||
-rw-r--r-- | dist/Devel-PPPort/parts/inc/misc | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/dist/Devel-PPPort/Changes b/dist/Devel-PPPort/Changes index 66322aee11..144ee9790c 100644 --- a/dist/Devel-PPPort/Changes +++ b/dist/Devel-PPPort/Changes @@ -19,6 +19,7 @@ macros * Provide LIKELY/UNLIKELY branch prediction * Provide av_tindex/av_top_index + * Provide __ASSERT_ for assertions inside macros 3.45 - 2019-03-19 diff --git a/dist/Devel-PPPort/parts/inc/misc b/dist/Devel-PPPort/parts/inc/misc index ac01de3792..e0c6974813 100644 --- a/dist/Devel-PPPort/parts/inc/misc +++ b/dist/Devel-PPPort/parts/inc/misc @@ -46,6 +46,12 @@ __UNDEFINED__ OpLASTSIB_set(o, parent) ((o)->op_sibling = NULL) __UNDEFINED__ OpMAYBESIB_set(o, sib, parent) ((o)->op_sibling = (sib)) __UNDEFINED__ HEf_SVKEY -2 +#if defined(DEBUGGING) && !defined(__COVERITY__) +__UNDEFINED__ __ASSERT_(statement) assert(statement), +#else +__UNDEFINED__ __ASSERT_(statement) +#endif + #ifndef SvRX #if { NEED SvRX } |