The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

dXCPT XCPT_TRY_START XCPT_TRY_END XCPT_CATCH XCPT_RETHROW

#ifdef NO_XSLOCKS # ifdef dJMPENV # define dXCPT dJMPENV; int rEtV = 0 # define XCPT_TRY_START JMPENV_PUSH(rEtV); if (rEtV == 0) # define XCPT_TRY_END JMPENV_POP; # define XCPT_CATCH if (rEtV != 0) # define XCPT_RETHROW JMPENV_JUMP(rEtV) # else # define dXCPT Sigjmp_buf oldTOP; int rEtV = 0 # define XCPT_TRY_START Copy(top_env, oldTOP, 1, Sigjmp_buf); rEtV = Sigsetjmp(top_env, 1); if (rEtV == 0) # define XCPT_TRY_END Copy(oldTOP, top_env, 1, Sigjmp_buf); # define XCPT_CATCH if (rEtV != 0) # define XCPT_RETHROW Siglongjmp(top_env, rEtV) # endif #endif

/* defined in module3.c */ int exception(int throw_e);

int exception(throw_e) int throw_e OUTPUT: RETVAL

my $rv;

$Devel::PPPort::exception_caught = undef;

$rv = eval { &Devel::PPPort::exception(0) }; is($@, ''); ok(defined $rv); is($rv, 42); is($Devel::PPPort::exception_caught, 0);

$Devel::PPPort::exception_caught = undef;

$rv = eval { &Devel::PPPort::exception(1) }; is($@, "boo\n"); ok(not defined $rv); is($Devel::PPPort::exception_caught, 1);

5 POD Errors

The following errors were encountered while parsing the POD:

Around line 12:

Unknown directive: =provides

Around line 20:

Unknown directive: =implementation

Around line 38:

Unknown directive: =xsmisc

Around line 43:

Unknown directive: =xsubs

Around line 51:

Unknown directive: =tests