Skip to content

Commit e780767

Browse files
committed
Perl_assert() expands to noop if Coverity, etc,
Some assertions have caused Coverity to complain in the past, or overflowed are too big 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 to also be the same for Perl_assert().
1 parent 47d730d commit e780767

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
@@ -5100,7 +5100,9 @@ Gid_t getegid (void);
51005100
# define assert(what) Perl_assert(what)
51015101
#endif
51025102

5103-
#ifdef DEBUGGING
5103+
#if defined DEBUGGING \
5104+
&& ! defined(__COVERITY__) \
5105+
&& ! defined(PERL_SMALL_MACRO_BUFFER)
51045106
# define Perl_assert(what) \
51055107
((what) \
51065108
? ((void) 0) \

0 commit comments

Comments
 (0)