Fix DEBUG build (#3861)

* Fix asserts which would not compile.

* Fix DEBUG build.

Fully enable checking gcode placeholders in debug builds.
This commit is contained in:
Seth LaForge 2024-01-28 23:14:54 -08:00 committed by GitHub
parent 3b7b10f72f
commit ab161d5a2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -2956,7 +2956,7 @@ std::string GCode::placeholder_parser_process(const std::string &name, const std
// Orca: Added CMake config option since debug is rarely used in current workflow.
// Also changed from throwing error immediately to storing messages till slicing is completed
// to raise all errors at the same time.
#if !defined(NDEBUG) || ORCA_CHECK_GCODE_PLACEHOLDERS // CHECK_CUSTOM_GCODE_PLACEHOLDERS
#if ORCA_CHECK_GCODE_PLACEHOLDERS
if (config_override) {
const auto& custom_gcode_placeholders = custom_gcode_specific_placeholders();