1 #ifndef BARRY_DEBUG_HPP
2 #define BARRY_DEBUG_HPP
4 #ifndef BARRY_DEBUG_LEVEL
5 #define BARRY_DEBUG_LEVEL 0
8 #define BARRY_DEBUG_HEADER "[barry]"
9 #define BARRY_DEBUG_MSG(a) \
10 printf_barry("%s %s\n", BARRY_DEBUG_HEADER, (a));
14 void BARRY_DEBUG_VEC_PRINT(
const std::vector<T> & a) {
16 for(
const auto & iter : (a))
24 inline void BARRY_DEBUG_VEC_PRINT(
const std::vector< int > & a) {
26 for(
const auto & iter : (a))
33 inline void BARRY_DEBUG_VEC_PRINT(
const std::vector< std::string > & a) {
35 for(
const auto & iter : (a))
36 printf_barry(
"%s %s\n", BARRY_DEBUG_HEADER, iter.c_str());