Slic3r/xs/xsp/Point.xsp

35 lines
426 B
Plaintext
Raw Normal View History

2013-07-06 17:26:32 +04:00
%module{Slic3r::XS};
%{
#include <myinit.h>
#include "Point.hpp"
%}
%name{Slic3r::Point::XS} class Point {
2013-07-06 18:33:49 +04:00
Point(unsigned long _x = 0, unsigned long _y = 0);
2013-07-07 18:51:02 +04:00
~Point();
2013-07-06 18:39:22 +04:00
%{
SV*
2013-07-07 14:41:54 +04:00
Point::arrayref()
2013-07-06 18:39:22 +04:00
CODE:
RETVAL = point2perl(*THIS);
OUTPUT:
RETVAL
%}
2013-07-06 17:26:32 +04:00
};
%package{Slic3r::Point::XS};
%{
PROTOTYPES: DISABLE
std::string
hello_world()
CODE:
RETVAL = "Hello world!";
OUTPUT:
RETVAL
%}