summaryrefslogtreecommitdiff
path: root/src/typemap
blob: 40049237be4ac44407d311c70318c100d0a9ebc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
TYPEMAP
VIWIN	T_VIOBJNOMUNGE
VIBUF	T_VIOBJNOMUNGE

INPUT
T_VIOBJNOMUNGE
	if (sv_isa($arg, \"${ntype}\")) {
	    IV tmp = SvIV((SV*)SvRV($arg));
	    $var = ($type) tmp;
	    if (!tmp)
		croak(\"$ntype no longer exists\");
	}
	else
	    croak(\"$var is not of type ${ntype}\")