eis/mix_cc/debug/print.h

23 lines
446 B
C++

#pragma once
#include <boost/stacktrace.hpp>
#include <nlohmann/json.hpp>
#include <iostream>
#include <string>
#include <thread>
#include <vector>
namespace mix_cc {
namespace debug {
void print(std::string&& str, boost::source_location&& src_loc);
} // namespace debug
} // namespace mix_cc
#ifdef DEBUG
#define DEBUG_PRINT_MIX_CC(x)\
mix_cc::debug::print(x, BOOST_CURRENT_LOCATION)
#else
#define DEBUG_PRINT_MIX_CC(x) /* foo */
#endif