Debian Codegraph @

typemap

raw
1 TYPEMAP
2 cdb * O_OBJECT
3 cdb_make * O_OBJECT
4
5 ######################################################################
6 OUTPUT
7
8 # The Perl object is blessed into 'CLASS', which should be a
9 # char* having the name of the package for the blessing.
10 O_OBJECT
11 sv_setref_pv( $arg, CLASS, (void*)$var );
12 SvREADONLY_on( SvRV( $arg ) );
13
14 ######################################################################
15 INPUT
16
17 O_OBJECT
18 if( sv_isobject($arg) && (SvTYPE(SvRV($arg)) == SVt_PVMG) )
19 $var = ($type)SvIV((SV*)SvRV( $arg ));
20 else{
21 warn( \"${Package}::$func_name() -- $var is not a blessed SV reference\" );
22 XSRETURN_UNDEF;
23 }
24
25