From 65f5ac4f8aa802fbdc286e0f58d16ab8361ceaf9 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Thu, 18 Feb 2021 11:47:06 +0100 Subject: [PATCH] The perl binding is killing Vojtech --- xs/xsp/GCode.xsp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xs/xsp/GCode.xsp b/xs/xsp/GCode.xsp index 6648b4453..78a5dde37 100644 --- a/xs/xsp/GCode.xsp +++ b/xs/xsp/GCode.xsp @@ -12,9 +12,7 @@ ~CoolingBuffer(); Ref gcodegen(); std::string process_layer(std::string gcode, size_t layer_id) - %code{% - return THIS->process_layer(std::move(gcode), layer_id, true); - %}; + %code{% RETVAL = THIS->process_layer(std::move(gcode), layer_id, true); %}; };