PrusaSlicer-NonPlainar/xs/xsp/Point.xsp

34 lines
411 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 {
2013-07-06 14:33:49 +00:00
Point(unsigned long _x = 0, unsigned long _y = 0);
2013-07-06 14:39:22 +00:00
%{
SV*
Point::_toPerl()
CODE:
RETVAL = point2perl(*THIS);
OUTPUT:
RETVAL
%}
2013-07-06 13:26:32 +00:00
};
%package{Slic3r::Point::XS};
%{
PROTOTYPES: DISABLE
std::string
hello_world()
CODE:
RETVAL = "Hello world!";
OUTPUT:
RETVAL
%}