PrusaSlicer-NonPlainar/xs/xsp/XS.xsp

77 lines
1.2 KiB
Plaintext
Raw Normal View History

2013-06-22 15:16:45 +00:00
%module{Slic3r::XS};
%package{Slic3r::XS};
#include <xsinit.h>
2016-11-24 12:44:51 +00:00
#include "Utils.hpp"
2013-06-23 13:33:07 +00:00
%{
2013-06-22 15:16:45 +00:00
%}
%package{Slic3r};
%{
SV*
VERSION()
CODE:
RETVAL = newSVpv(SLIC3R_VERSION, 0);
OUTPUT: RETVAL
SV*
BUILD()
CODE:
RETVAL = newSVpv(SLIC3R_BUILD, 0);
OUTPUT: RETVAL
SV*
DEBUG_OUT_PATH_PREFIX()
CODE:
RETVAL = newSVpv(SLIC3R_DEBUG_OUT_PATH_PREFIX, 0);
OUTPUT: RETVAL
SV*
FORK_NAME()
CODE:
RETVAL = newSVpv(SLIC3R_FORK_NAME, 0);
OUTPUT: RETVAL
2016-11-24 12:44:51 +00:00
void
set_logging_level(level)
unsigned int level;
CODE:
Slic3r::set_logging_level(level);
2017-03-03 11:53:05 +00:00
void
trace(level, message)
unsigned int level;
char *message;
CODE:
Slic3r::trace(level, message);
std::string
encode_path(src)
const char *src;
CODE:
Slic3r::encode_path(src);
std::string
decode_path(src)
const char *src;
CODE:
Slic3r::decode_path(src);
std::string
normalize_utf8_nfc(src)
const char *src;
CODE:
Slic3r::normalize_utf8_nfc(src);
void
xspp_test_croak_hangs_on_strawberry()
CODE:
try {
throw 1;
} catch (...) {
croak("xspp_test_croak_hangs_on_strawberry: exception catched\n");
}
%}