PrusaSlicer-NonPlainar/xs/xsp/Point.xsp
Alessandro Ranellucci 4093280566 Remove Point.cpp
2013-07-06 16:39:22 +02:00

34 lines
411 B
Plaintext

%module{Slic3r::XS};
%{
#include <myinit.h>
#include "Point.hpp"
%}
%name{Slic3r::Point::XS} class Point {
Point(unsigned long _x = 0, unsigned long _y = 0);
%{
SV*
Point::_toPerl()
CODE:
RETVAL = point2perl(*THIS);
OUTPUT:
RETVAL
%}
};
%package{Slic3r::Point::XS};
%{
PROTOTYPES: DISABLE
std::string
hello_world()
CODE:
RETVAL = "Hello world!";
OUTPUT:
RETVAL
%}