Loading...
Searching...
No Matches
Go to the documentation of this file.
18#if defined(CBMCA_DEBUG_MODE)
20#define CBMCA_DEBUG_ASSERT(v) \
22 LOG(error) << __FILE__ << ":" << __LINE__ << " assertion failed: " << #v << " = " << (v); \
26#define CBMCA_DEBUG_SHOW(expr) \
27 LOG(info) << __FILE__ << ":" << __LINE__ << ": \033[01;38;5;208m" << (#expr) << "\033[0m = " << (expr);
29#define CBMCA_DEBUG_SHOWF(msg) \
30 LOG(info) << "(!) " << __FILE__ << ":" << __LINE__ << ": \033[01;38;5;208m" << (#msg) << "\033[0m";
32#define CBMCA_DEBUG_SHOWCONTAINER(cont) \
33 std::stringstream ss; \
34 ss << __FILE__ << ":" << __LINE__ << ": \033[01;38;5;208m" << (#cont) << "\033[0m: "; \
35 std::for_each(cont.cbegin(), cont.cend(), [](const auto& el) { ss << el << " "; }); \
36 LOG(info) << ss.str();
40#define CBMCA_DEBUG_ASSERT(v)
42#define CBMCA_DEBUG_SHOW(expr)
44#define CBMCA_DEBUG_SHOWF(msg)
46#define CBMCA_DEBUG_SHOWCONTAINER(cont)