This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add a way to have functions with a trailing depth argument under debugging
authorYves Orton <demerphq@gmail.com>
Wed, 19 Oct 2016 20:44:45 +0000 (22:44 +0200)
committerYves Orton <demerphq@gmail.com>
Wed, 19 Oct 2016 20:44:45 +0000 (22:44 +0200)
commit2155384086267a57ee889c698fad3a1380105303
treebce77c9b06c2c056829e99d5074425965c8b3fd5
parent04a83e5bd7a0783edd6a771c965154e14a103644
Add a way to have functions with a trailing depth argument under debugging

In the regex engine it can be useful in debugging mode to
maintain a depth counter, but in normal mode this argument
would be unused. This allows us to define functions in embed.fnc
with a "W" flag which use _pDEPTH and _aDEPTH defines which
effectively define/pass through a U32 depth parameter to the
macro wrappers. These defines are similar to the existing
aTHX and pTHX parameters.
embed.fnc
embed.h
perl.h
proto.h
regen/embed.pl
regexec.c