Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Point.xsp « xsp « xs - github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: db810068bb624e33ebfa0bd9c1c3dcd76820a5cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
%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
%}