Slic3r/xs/xsp/Point.xsp

26 lines
342 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-06 17:26:32 +04:00
~Point();
SV* _toPerl();
};
%package{Slic3r::Point::XS};
%{
PROTOTYPES: DISABLE
std::string
hello_world()
CODE:
RETVAL = "Hello world!";
OUTPUT:
RETVAL
%}