PrusaSlicer-NonPlainar/xs/xsp/Point.xsp

26 lines
334 B
Plaintext
Raw Normal View History

2013-07-06 13:26:32 +00:00
%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
%}