Debian Codegraph @

typemap

raw
1 TYPEMAP
2 CV * T_CVREF
3
4 INPUT
5 # The Perl core already has a typemap entry for CV*, but empirically the
6 # one in 5.6 is broken. This is essentially a copy of the one in 5.8,
7 # which also works for 5.6.
8 T_CVREF
9 if (SvROK($arg) && SvTYPE(SvRV($arg))==SVt_PVCV)
10 $var = (CV*)SvRV($arg);
11 else
12 croak(\"$var is not a code reference\")