Devel-PPPort
view release on metacpan or search on metacpan
parts/inc/threads view on Meta::CPAN
aTHXR
aTHXR_
dTHXR
=implementation
__UNDEFINED__ dTHR dNOOP
__UNDEFINED__ dTHX dNOOP
/* Hint: dTHX
For pre-5.6.0 thread compatibility, instead use dTHXR, available only through
ppport.h */
__UNDEFINED__ dTHXa(x) dNOOP
__UNDEFINED__ pTHX void
__UNDEFINED__ pTHX_
__UNDEFINED__ aTHX
/* Hint: aTHX
For pre-5.6.0 thread compatibility, instead use aTHXR, available only through
ppport.h */
__UNDEFINED__ aTHX_
/* Hint: aTHX_
For pre-5.6.0 thread compatibility, instead use aTHXR_, available only
through ppport.h */
#if { VERSION < 5.6.0 }
# ifdef USE_THREADS
# define aTHXR thr
# define aTHXR_ thr,
# else
# define aTHXR
# define aTHXR_
# endif
# define dTHXR dTHR
#else
# define aTHXR aTHX
# define aTHXR_ aTHX_
# define dTHXR dTHX
#endif
__UNDEFINED__ dTHXoa(x) dTHXa(x)
=xsubs
IV
no_THX_arg(sv)
SV *sv
CODE:
RETVAL = 1 + sv_2iv(sv);
OUTPUT:
RETVAL
void
with_THX_arg(error)
SV *error
PPCODE:
croak_sv(error);
=tests plan => 2
is(&Devel::PPPort::no_THX_arg("42"), 43);
eval { &Devel::PPPort::with_THX_arg("yes\n"); };
ok($@ =~ /^yes/);
( run in 0.999 second using v1.01-cache-2.11-cpan-5511b514fd6 )