summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorMarcus Holland-Moritz <mhx-perl@gmx.net>2005-02-02 21:26:14 +0000
committerMarcus Holland-Moritz <mhx-perl@gmx.net>2005-02-02 21:26:14 +0000
commit9b5c3821be1f2a9a84772171c8bbadbf9cfc4a53 (patch)
tree4b5ecf8fab09757c501d691471658ab6d039283d /pod
parent21c16052ffb70c4bff066e455c6d4bea74622e34 (diff)
downloadperl-9b5c3821be1f2a9a84772171c8bbadbf9cfc4a53.tar.gz
Attempt to fix problems with new exception handling macros.
p4raw-id: //depot/perl@23925
Diffstat (limited to 'pod')
-rw-r--r--pod/perlguts.pod13
1 files changed, 9 insertions, 4 deletions
diff --git a/pod/perlguts.pod b/pod/perlguts.pod
index 7f23169011..d95d3e4c03 100644
--- a/pod/perlguts.pod
+++ b/pod/perlguts.pod
@@ -2262,10 +2262,15 @@ and
=head2 Exception Handling
-There are a couple of macros to do very basic exception handling in
-XS modules. You can use these macros if you call code that may croak,
-but you need to do some cleanup before giving control back to Perl.
-For example:
+There are a couple of macros to do very basic exception handling in XS
+modules. You have to define C<NO_XSLOCKS> before including F<XSUB.h> to
+be able to use these macros:
+
+ #define NO_XSLOCKS
+ #include "XSUB.h"
+
+You can use these macros if you call code that may croak, but you need
+to do some cleanup before giving control back to Perl. For example:
dXCPT; /* set up neccessary variables */