summaryrefslogtreecommitdiff
path: root/XSUB.h
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-06-02 06:07:53 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-06-02 06:07:53 +0000
commite1f795dc699c88c2d9eb4a46fe629483760393c2 (patch)
treeb441815162375621cd823107a2da6a026bd2ce1e /XSUB.h
parent533968fe05e828818d78b731fade41cae15a5f2a (diff)
downloadperl-e1f795dc699c88c2d9eb4a46fe629483760393c2.tar.gz
Make the dUNDERBAR/UNDERBAR macros work as advertised.
While we're at it, use the same trick to make reverse() work correctly with lexical $_. p4raw-id: //depot/perl@22889
Diffstat (limited to 'XSUB.h')
-rw-r--r--XSUB.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/XSUB.h b/XSUB.h
index a1e48dd47c..563d3312bf 100644
--- a/XSUB.h
+++ b/XSUB.h
@@ -114,7 +114,7 @@ is a lexical $_ in scope.
#define XSINTERFACE_FUNC_SET(cv,f) \
CvXSUBANY(cv).any_dxptr = (void (*) (pTHX_ void*))(f)
-#define dUNDERBAR I32 padoff_du = pad_findmy("$_")
+#define dUNDERBAR I32 padoff_du = Perl_find_rundefsvoffset()
#define UNDERBAR ((padoff_du == NOT_IN_PAD \
|| PAD_COMPNAME_FLAGS(padoff_du) & SVpad_OUR) \
? DEFSV : PAD_SVl(padoff_du))