Skip to content

Commit 791874e

Browse files
committed
perl.h Move macro definition to earlier
This makes the next commits smaller.
1 parent 2c5267a commit 791874e

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
@@ -5113,6 +5113,10 @@ Gid_t getegid (void);
51135113
/* Keep the old croak based assert for those who want it, and as a fallback if
51145114
the platform is so heretically non-ANSI that it can't assert. */
51155115

5116+
#ifndef assert
5117+
# define assert(what) Perl_assert(what)
5118+
#endif
5119+
51165120
#ifdef DEBUGGING
51175121
# define Perl_assert(what) \
51185122
((what) \
@@ -5125,9 +5129,6 @@ Gid_t getegid (void);
51255129
# define Perl_assert(what) ((void) 0)
51265130
#endif
51275131

5128-
#ifndef assert
5129-
# define assert(what) Perl_assert(what)
5130-
#endif
51315132
#ifdef DEBUGGING
51325133
# define assert_(what) assert(what),
51335134
#else

0 commit comments

Comments
 (0)