fix: #if changed to #ifdef for DEBUG_ENABLED check

This commit is contained in:
Sara 2024-08-05 11:14:03 +02:00
parent 0e8bcf4442
commit 40a93aec32

View file

@ -192,12 +192,12 @@ bool Planner::does_action_contribute(Action const *action, WorldStateNode const
Plan Planner::unroll_plan(WorldStateNode const &start_node, NodeMap const &from) { Plan Planner::unroll_plan(WorldStateNode const &start_node, NodeMap const &from) {
Plan plan{}; Plan plan{};
WorldStateNode node{start_node}; WorldStateNode node{start_node};
#if DEBUG_ENABLED #ifdef DEBUG_ENABLED
gd::UtilityFunctions::print("plan (", this->get_path(), "):"); gd::UtilityFunctions::print("plan (", this->get_path(), "):");
#endif #endif
while(node.last_action != nullptr) { while(node.last_action != nullptr) {
plan.push_back(node.last_action); plan.push_back(node.last_action);
#if DEBUG_ENABLED #ifdef DEBUG_ENABLED
gd::UtilityFunctions::print(" (", plan.size(), ") ", node.last_action->get_class()); gd::UtilityFunctions::print(" (", plan.size(), ") ", node.last_action->get_class());
#endif #endif
node = from.get(node); node = from.get(node);