PrusaSlicer-NonPlainar/xs/xsp/Point.xsp

35 lines
426 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-07 14:51:02 +00:00
~Point();
2013-07-06 14:39:22 +00:00
%{
SV*
2013-07-07 10:41:54 +00:00
Point::arrayref()
2013-07-06 14:39:22 +00:00
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
%}