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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2018-10-24 14:59:24 +0300
committerbubnikv <bubnikv@gmail.com>2018-10-24 14:59:24 +0300
commit56633c7449127d0894dd8c697033309f62781ccd (patch)
tree2d7dd647ce0bcccbadd026fe88dcefc7f817660e /xs
parentf3c9a798dd26e18f766e5f9a2115173535131098 (diff)
Reverted Print::export_png() for the Perl unit tests.
Diffstat (limited to 'xs')
-rw-r--r--xs/xsp/Print.xsp8
1 files changed, 8 insertions, 0 deletions
diff --git a/xs/xsp/Print.xsp b/xs/xsp/Print.xsp
index 39708ca7a..b34444b23 100644
--- a/xs/xsp/Print.xsp
+++ b/xs/xsp/Print.xsp
@@ -185,6 +185,14 @@ _constant()
}
%};
+ void export_gcode(char *path_template) %code%{
+ try {
+ THIS->export_gcode(path_template, nullptr);
+ } catch (std::exception& e) {
+ croak(e.what());
+ }
+ %};
+
void export_png(char *path) %code%{
try {
THIS->export_png(path);