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

@ -42,6 +42,7 @@ Line::midpoint() const
return new Point ((this->a.x + this->b.x) / 2.0, (this->a.y + this->b.y) / 2.0);
}
#ifdef SLIC3RXS
void
Line::from_SV(SV* line_sv)
{
@ -98,5 +99,6 @@ Line::to_SV_pureperl() const {
av_store(av, 1, this->b.to_SV_pureperl());
return newRV_noinc((SV*)av);
}
#endif
}