gtec: hide some debugging code behind #if/#endif

* spot/twaalgos/gtec/gtec.cc, spot/twaalgos/gtec/gtec.hh:
Here.
This commit is contained in:
Alexandre Duret-Lutz 2018-05-22 15:06:14 +02:00
parent 75550112a7
commit a3b9469d67
2 changed files with 6 additions and 2 deletions

View file

@ -20,12 +20,13 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
// #define TRACE
#include "config.h" #include "config.h"
#include <iostream> #include <iostream>
// #define TRACE
#ifdef TRACE #ifdef TRACE
#define trace std::cerr #define trace std::cerr
#define SPOT_TRACE 1
#else #else
#define trace while (0) std::cerr #define trace while (0) std::cerr
#endif #endif
@ -370,7 +371,7 @@ namespace spot
assert(depth() == 0); assert(depth() == 0);
} }
void #ifdef TRACE
couvreur99_check_shy::dump_queue(std::ostream& os) couvreur99_check_shy::dump_queue(std::ostream& os)
{ {
os << "--- TODO ---\n"; os << "--- TODO ---\n";
@ -390,6 +391,7 @@ namespace spot
os << "}\n"; os << "}\n";
} }
} }
#endif
emptiness_check_result_ptr emptiness_check_result_ptr
couvreur99_check_shy::check() couvreur99_check_shy::check()

View file

@ -230,8 +230,10 @@ namespace spot
void clear_todo(); void clear_todo();
#ifdef SPOT_TRACE
/// Dump the queue for debugging. /// Dump the queue for debugging.
void dump_queue(std::ostream& os = std::cerr); void dump_queue(std::ostream& os = std::cerr);
#endif
/// Whether successors should be grouped for states in the same SCC. /// Whether successors should be grouped for states in the same SCC.
bool group_; bool group_;