File: typemap

package info (click to toggle)
libgeo-proj4-perl 1.05-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 168 kB
  • ctags: 233
  • sloc: ansic: 362; perl: 347; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
TYPEMAP
projPJ	O_OBJECT

OUTPUT
O_OBJECT
    sv_setref_pv( $arg, "Geo::Proj4", (void*)$var );

INPUT
O_OBJECT
    if( sv_isobject($arg) && (SvTYPE(SvRV($arg)) == SVt_PVMG) )
	$var = ($type)SvIV((SV*)SvRV( $arg ));
    else {
	/* original version had a line break here that broke the code. */
	warn( \"${Package}::$func_name() - $var is not a blessed reference\" );
	XSRETURN_UNDEF;
    }