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
diff options
context:
space:
mode:
Diffstat (limited to 'xs/xsp/GCode.xsp')
-rw-r--r--xs/xsp/GCode.xsp12
1 files changed, 1 insertions, 11 deletions
diff --git a/xs/xsp/GCode.xsp b/xs/xsp/GCode.xsp
index 9104e481a..ea54fd3a7 100644
--- a/xs/xsp/GCode.xsp
+++ b/xs/xsp/GCode.xsp
@@ -17,17 +17,7 @@
%name{Slic3r::GCode} class GCode {
GCode();
~GCode();
- std::string do_export(Print *print, const char *path)
- %code{%
- FILE *file = fopen(path, "wb");
- if (file == nullptr) {
- RETVAL = std::string("Failed to open ") + path + " for writing.";
- } else {
- THIS->do_export(file, *print);
- fclose(file);
- RETVAL = std::string();
- }
- %};
+ std::string do_export(Print *print, const char *path);
Ref<Pointf> origin()
%code{% RETVAL = &(THIS->origin()); %};