Skip to content

Commit 28cffa9

Browse files
committed
Perl_assert() expands to noop if Coverity, etc,
Some assertions have caused Coverity to complain in the past, or overflowed for some platforms, so the definition of __ASSERT_ in handy.h expands to a no-op if under Coverity or the system doesn't have a normal sized macro buffer. Bring that definition here to also be the same for Perl_assert().
1 parent 0a745c4 commit 28cffa9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

perl.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5117,7 +5117,9 @@ Gid_t getegid (void);
51175117
# define assert(what) Perl_assert(what)
51185118
#endif
51195119

5120-
#ifdef DEBUGGING
5120+
#if defined DEBUGGING \
5121+
&& ! defined(__COVERITY__) \
5122+
&& ! defined(PERL_SMALL_MACRO_BUFFER)
51215123
# define Perl_assert(what) \
51225124
((what) \
51235125
? ((void) 0) \

0 commit comments

Comments
 (0)