Skip to content

Commit 8e28d19

Browse files
committed
perl.h Move macro definition to earlier
This makes the next commits smaller.
1 parent c82bde3 commit 8e28d19

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

perl.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5096,6 +5096,10 @@ Gid_t getegid (void);
50965096
/* Keep the old croak based assert for those who want it, and as a fallback if
50975097
the platform is so heretically non-ANSI that it can't assert. */
50985098

5099+
#ifndef assert
5100+
# define assert(what) Perl_assert(what)
5101+
#endif
5102+
50995103
#ifdef DEBUGGING
51005104
# define Perl_assert(what) \
51015105
((what) \
@@ -5107,9 +5111,6 @@ Gid_t getegid (void);
51075111
# define Perl_assert(what) ((void) 0)
51085112
#endif
51095113

5110-
#ifndef assert
5111-
# define assert(what) Perl_assert(what)
5112-
#endif
51135114
#ifdef DEBUGGING
51145115
# define assert_(what) assert(what),
51155116
#else

0 commit comments

Comments
 (0)