This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
reentr.h: Add way to see if reentrant used
authorKarl Williamson <khw@cpan.org>
Mon, 16 Mar 2020 18:00:51 +0000 (12:00 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 19 Mar 2020 00:05:49 +0000 (18:05 -0600)
commit7dc0f1bb7f6dd199fb0aae6f5edfa264e67a051a
tree18656514dcb6276a2b885978a5bc8dae3313273a
parent6f16cbe7e9bc8235fe582dd816ccae057aff9bbd
reentr.h: Add way to see if reentrant used

The reentrant mechanism automatically and silently replaces a given
function by its reentrant version when warranted.  Until now, there was
no direct way to test if it actually happens.  One could infer it,
possibly, but not without the potential for getting it wrong.

Now, for function foo, add #ifdef PERL_REENTR_USING_FOO_R
reentr.h
regen/reentr.pl