#pragma once #include #include "config.h" #if DEBUG == 1 #define pr_debug(...) std::cout << "[" << __func__ << ":" << __LINE__ << "] debug: " << __VA_ARGS__ << "\n" #else #define pr_debug(...) do {} while (0) #endif #define pr_warn(...) std::cout << "[" << __func__ << ":" << __LINE__ << "] warning: " << __VA_ARGS__ << "\n"