diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-05-14 09:38:43 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-05-14 09:38:43 +0000 |
commit | 88037a85d6a4b105a485a30b7ae673eff41a9098 (patch) | |
tree | c2c89faaa65003520ecc71336430ad11558a3696 /pod/perlapi.pod | |
parent | 7aa207d6d833e60be59e41514013c4c54b091533 (diff) | |
download | perl-88037a85d6a4b105a485a30b7ae673eff41a9098.tar.gz |
Add new dUNDERBAR and UNDERBAR macros, to help XS writers to
access the $_ variable, even when there is a lexical one in scope.
p4raw-id: //depot/perl@22819
Diffstat (limited to 'pod/perlapi.pod')
-rw-r--r-- | pod/perlapi.pod | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pod/perlapi.pod b/pod/perlapi.pod index b0381fe1e4..27daa64407 100644 --- a/pod/perlapi.pod +++ b/pod/perlapi.pod @@ -5418,6 +5418,16 @@ This is usually handled automatically by C<xsubpp> by calling C<dXSARGS>. =for hackers Found in file XSUB.h +=item dUNDERBAR + +Sets up the C<padoff_du> variable for an XSUB that wishes to use +C<UNDERBAR>. + + dUNDERBAR; + +=for hackers +Found in file XSUB.h + =item dXSARGS Sets up stack and mark pointers for an XSUB, calling dSP and dMARK. @@ -5498,6 +5508,14 @@ L<perlxs/"Using XS With C++">. =for hackers Found in file XSUB.h +=item UNDERBAR + +The SV* corresponding to the $_ variable. Works even if there +is a lexical $_ in scope. + +=for hackers +Found in file XSUB.h + =item XS Macro to declare an XSUB and its C parameter list. This is handled by |