blob: 47fe18fb50ef5cdc4bf4065449d97c6f65e67e8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
TYPEMAP
Header O_OBJECT
rpmSpec O_OBJECT
rpmts O_OBJECT
rpmds O_OBJECT
rpmfi O_OBJECT
rpmte O_OBJECT
rpmps O_OBJECT
INPUT
O_OBJECT
if (sv_isobject($arg) && (SvTYPE(SvRV($arg)) == SVt_PVMG))
$var = ($type)SvIV((SV*)SvRV( $arg ));
else {
warn( \"${Package}::$func_name() -- $var is not a blessed SV reference\" );
XSRETURN_UNDEF;
}
OUTPUT
O_OBJECT
sv_setref_pv( $arg, (char *)CLASS, (void*)$var );
|