# "perlobject.map" Dean Roehrich, version 19960302
#
# TYPEMAPs
#
############################################################
OUTPUT
# The Perl object is blessed into 'CLASS', which should be a
# char* having the name of the package for the blessing.
T_X_PTR
sv_setref_pv( $arg,${ntype}_Package, (void*)$var );
############################################################
INPUT
T_X_PTR
if(sv_derived_from($arg,${ntype}_Package)) {
IV tmp_ = SvIV((SV*)SvRV($arg));
$var = ($type)tmp_;
}
else
croak(\"$var is not of type %s\",${ntype}_Package);