summaryrefslogtreecommitdiffstats
path: root/perl/typemap
blob: c22830d1c9fa5a2e2509121491b42d06ad809a41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const char *	T_PV
nasth *		T_PTROBJ
NASTD::Hole	O_NASTH

#
# Output methods
#
OUTPUT
O_NASTH
	sv_setref_pv($arg, "Asshole", (void *)$var);

#
# Input methods
#
INPUT
O_NASTH
	if (sv_isobject($arg) && (SvTYPE(SvRV($arg)) == SVt_PVMG)) {
		$var = ($type)SvIV((SV *)SvRV($arg));
	} else {
		warn(\"${Package}::$func_name() --\"
		     \" $var is not a valid nasthole.\");
		XSRETURN_UNDEF;
	}