Skip to content

Commit a45f656

Browse files
committed
Add Perl_assert_()
This is a long name equivalent to assert_().
1 parent 7d40756 commit a45f656

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

perl.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5178,8 +5178,8 @@ Gid_t getegid (void);
51785178
__FILE__, __LINE__));
51795179
/*
51805180
=for apidoc_section $directives
5181-
=for apidoc Am|void|assert_|bool expr
5182-
=for apidoc_item | |__ASSERT_
5181+
=for apidoc ATmp|void|assert_|bool expr
5182+
=for apidoc_item Tm| |__ASSERT_
51835183
51845184
These are synonymous, used to wrap the libc C<assert()> call in comma
51855185
expressions in macro expansions, but you probably don't want to use them nor
@@ -5233,13 +5233,13 @@ contexts in C, and in all contexts in C++.
52335233
" file \"" __FILE__ "\", line %" LINE_Tf, \
52345234
STRINGIFY(what), (line_t) __LINE__), \
52355235
(void) 0))
5236-
# define assert_(what) assert(what),
5237-
# define __ASSERT_(statement) assert(statement),
5236+
# define Perl_assert_(what) assert(what),
52385237
#else
52395238
# define Perl_assert(what) ((void) 0)
5240-
# define assert_(what)
5241-
# define __ASSERT_(statement)
5239+
# define Perl_assert_(what)
52425240
#endif
5241+
#define assert_(what) Perl_assert_(what)
5242+
#define __ASSERT_(statement) Perl_assert_(statement)
52435243

52445244
struct ufuncs {
52455245
I32 (*uf_val)(pTHX_ IV, SV*);

0 commit comments

Comments
 (0)