Conditional compilation to exclude all Perl/XS stuff from C++ code

This commit is contained in:
Alessandro Ranellucci 2013-09-13 14:48:40 +02:00
parent e2cb40766b
commit 6e22a82e7d
20 changed files with 133 additions and 87 deletions

View file

@ -72,6 +72,7 @@ Point::distance_to(const Point* point) const
return sqrt(dx*dx + dy*dy);
}
#ifdef SLIC3RXS
SV*
Point::to_SV_ref() {
SV* sv = newSV(0);
@ -112,5 +113,6 @@ Point::from_SV_check(SV* point_sv)
this->from_SV(point_sv);
}
}
#endif
}