diff --git a/src/libslic3r/libslic3r_version.h.in b/src/libslic3r/libslic3r_version.h.in index 90383c93af6..1c9defad586 100644 --- a/src/libslic3r/libslic3r_version.h.in +++ b/src/libslic3r/libslic3r_version.h.in @@ -10,6 +10,13 @@ //#define SLIC3R_RC_VERSION "@SLIC3R_VERSION@" #define BBL_RELEASE_TO_PUBLIC @BBL_RELEASE_TO_PUBLIC@ #define BBL_INTERNAL_TESTING @BBL_INTERNAL_TESTING@ -#define ORCA_CHECK_GCODE_PLACEHOLDERS @ORCA_CHECK_GCODE_PLACEHOLDERS@ + +// @ORCA_CHECK_GCODE_PLACEHOLDERS@ +// Logic taken from ./src/libslic3r/GCode.hpp +#if !defined(NDEBUG) + #define ORCA_CHECK_GCODE_PLACEHOLDERS 1 +#else + #define ORCA_CHECK_GCODE_PLACEHOLDERS 0 +#endif #endif /* __SLIC3R_VERSION_H */