%module{Slic3r::XS}; %{ #include #include "libslic3r/ConditionalGCode.hpp" %} %package{Slic3r::ConditionalGCode}; %{ PROTOTYPES: DISABLE std::string apply_math(std::string input) CODE: RETVAL = Slic3r::apply_math(input); OUTPUT: RETVAL %}