From: Perl 5 Porters Date: Thu, 29 Aug 1996 10:21:33 +0000 (+0000) Subject: document xsubpp SCOPE: X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=84287afe68eecc4342d7e27aac5d9df9d2412490;p=p5sagit%2Fp5-mst-13.2.git document xsubpp SCOPE: --- diff --git a/pod/perlxs.pod b/pod/perlxs.pod index 850960a..6a898a5 100644 --- a/pod/perlxs.pod +++ b/pod/perlxs.pod @@ -416,6 +416,23 @@ A correct, but error-prone example. timep RETVAL +=head2 The SCOPE: Keyword + +The SCOPE: keyword allows scoping to be enabled for a particular XSUB. If +enabled, the XSUB will invoke ENTER and LEAVE automatically. + +To support potentially complex type mappings, if a typemap entry used +by this XSUB contains a comment like C then scoping will +automatically be enabled for that XSUB. + +To enable scoping: + + SCOPE: ENABLE + +To disable scoping: + + SCOPE: DISABLE + =head2 The INPUT: Keyword The XSUB's parameters are usually evaluated immediately after entering the