Loading...
Searching...
No Matches
Go to the documentation of this file.
13 #define DEBUG_PRINT(x) do { \
14 std::lock_guard<std::mutex> lock(debug_mutex); \
15 auto now = std::chrono::system_clock::now(); \
16 std::time_t now_time = std::chrono::system_clock::to_time_t(now); \
17 std::ostringstream oss; \
18 oss << std::put_time(std::localtime(&now_time), "%Y-%m-%d %H:%M:%S"); \
19 std::cerr << oss.str() << " - " << x << std::endl; \
22 #define DEBUG_PRINT(x)
std::mutex debug_mutex
Definition debug.cpp:4