PrusaSlicer-NonPlainar/xs/xsp/Point.xsp
2013-07-06 15:26:32 +02:00

26 lines
334 B
Plaintext

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