mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-28 07:35:20 +00:00
New XS framework for C and C++ code
This commit is contained in:
14
xs/xsp/TriangleMesh.xsp
Normal file
14
xs/xsp/TriangleMesh.xsp
Normal file
@@ -0,0 +1,14 @@
|
||||
%module{Slic3r::TriangleMesh::XS};
|
||||
%package{Slic3r::TriangleMesh::XS};
|
||||
|
||||
%{
|
||||
PROTOTYPES: DISABLE
|
||||
|
||||
std::string
|
||||
hello_world()
|
||||
CODE:
|
||||
RETVAL = "Hello world!";
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
%}
|
||||
6
xs/xsp/XS.xsp
Normal file
6
xs/xsp/XS.xsp
Normal file
@@ -0,0 +1,6 @@
|
||||
%module{Slic3r::XS};
|
||||
%package{Slic3r::XS};
|
||||
|
||||
%{
|
||||
#include <myinit.h>
|
||||
%}
|
||||
0
xs/xsp/mytype.map
Normal file
0
xs/xsp/mytype.map
Normal file
2
xs/xsp/typemap.xspt
Normal file
2
xs/xsp/typemap.xspt
Normal file
@@ -0,0 +1,2 @@
|
||||
%typemap{std::string}{simple};
|
||||
%typemap{std::string&}{reference};
|
||||
Reference in New Issue
Block a user