Try to fix compilation on older Perls
This commit is contained in:
parent
1bebe6097b
commit
7523550066
@ -337,10 +337,10 @@ T_STD_VECTOR_DOUBLE
|
|||||||
|
|
||||||
O_OBJECT_SLIC3R
|
O_OBJECT_SLIC3R
|
||||||
if( sv_isobject($arg) && (SvTYPE(SvRV($arg)) == SVt_PVMG) ) {
|
if( sv_isobject($arg) && (SvTYPE(SvRV($arg)) == SVt_PVMG) ) {
|
||||||
if ( sv_isa($arg, perl_class_name($var) ) || sv_isa($arg, perl_class_name_ref($var) )) {
|
if ( sv_isa($arg, Slic3r::perl_class_name($var) ) || sv_isa($arg, Slic3r::perl_class_name_ref($var) )) {
|
||||||
$var = ($type)SvIV((SV*)SvRV( $arg ));
|
$var = ($type)SvIV((SV*)SvRV( $arg ));
|
||||||
} else {
|
} else {
|
||||||
croak(\"$var is not of type %s (got %s)\", perl_class_name($var), HvNAME(SvSTASH(SvRV($arg))));
|
croak(\"$var is not of type %s (got %s)\", Slic3r::perl_class_name($var), HvNAME(SvSTASH(SvRV($arg))));
|
||||||
XSRETURN_UNDEF;
|
XSRETURN_UNDEF;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -464,7 +464,7 @@ T_STD_VECTOR_DOUBLE
|
|||||||
O_OBJECT_SLIC3R
|
O_OBJECT_SLIC3R
|
||||||
if ($var == NULL)
|
if ($var == NULL)
|
||||||
XSRETURN_UNDEF;
|
XSRETURN_UNDEF;
|
||||||
sv_setref_pv( $arg, perl_class_name($var), (void*)$var );
|
sv_setref_pv( $arg, Slic3r::perl_class_name($var), (void*)$var );
|
||||||
|
|
||||||
# return value handled by template class
|
# return value handled by template class
|
||||||
O_OBJECT_SLIC3R_T
|
O_OBJECT_SLIC3R_T
|
||||||
|
Loading…
Reference in New Issue
Block a user