diff options
author | Karl Williamson <khw@cpan.org> | 2022-06-19 06:26:28 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-06-19 06:42:47 -0600 |
commit | d4dc074d7016949ed3776d7306fb4c7ad399ae52 (patch) | |
tree | ae295e9c6fcfa8a644e5e390bd51d3bdd8a8f630 | |
parent | feb4200c8b05dbe7f18760971b8a3feebf02eedb (diff) | |
download | perl-d4dc074d7016949ed3776d7306fb4c7ad399ae52.tar.gz |
perlapi: Note PERL_GCC_BRACE_GROUPS_FORBIDDEN exists
-rw-r--r-- | perl.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -860,6 +860,11 @@ specify an alternative. Thus two code paths have to be maintained, which can get out-of-sync. All these issues are solved by using a C<static inline> function instead. +Perl can be configured to not use this feature by passing the parameter +C<-Accflags=-DPERL_GCC_BRACE_GROUPS_FORBIDDEN> to F<Configure>. + +=for apidoc Amnh#||PERL_GCC_BRACE_GROUPS_FORBIDDEN + Example usage: =over @@ -7932,7 +7937,8 @@ so no C<x++>. #endif #define do_open(g, n, l, a, rm, rp, sf) \ - do_openn(g, n, l, a, rm, rp, sf, (SV **) NULL, 0) +({ (PerlIO_printf(Perl_debug_log, "%s: %d: oname=%s\n", __FILE__, __LINE__, n)); \ + do_openn(g, n, l, a, rm, rp, sf, (SV **) NULL, 0); }) #ifdef PERL_DEFAULT_DO_EXEC3_IMPLEMENTATION # define do_exec(cmd) do_exec3(cmd,0,0) #endif |