Debian Codegraph @

typemap

raw
1 TYPEMAP
2 Compiler_Lexer T_PTROBJ_SPECIAL
3 INPUT
4 T_PTROBJ_SPECIAL
5 if (sv_derived_from($arg, \"${(my $ntt=$ntype)=~s/_/::/g;\$ntt}\")) {
6 IV tmp = SvIV((SV*)SvRV($arg));
7 $var = INT2PTR($type, tmp);
8 }
9 else
10 croak(\"$var is not of type ${(my $ntt=$ntype)=~s/_/::/g;\$ntt}\")
11 OUTPUT
12 T_PTROBJ_SPECIAL
13 sv_setref_pv($arg, \"${(my $ntt=$ntype)=~s/_/::/g;\$ntt}\",
14 (void*)$var);