17 lines
623 B
C++
17 lines
623 B
C++
#pragma once
|
|
|
|
#include <iostream>
|
|
#include "config.h"
|
|
|
|
#if DEBUG == 1
|
|
#define pr_debug(...) std::cout << "[" << __FILE__ << ":" << __LINE__ << " " << __func__ << "] debug: " << __VA_ARGS__ << "\n"
|
|
#define pri_debug(...) std::cout << __VA_ARGS__
|
|
#define prs_debug(...) std::cout << "[" << __FILE__ << ":" << __LINE__ << " " << __func__ << "] debug: " << __VA_ARGS__
|
|
#else
|
|
#define pr_debug(...) do {} while (0)
|
|
#define pri_debug(...) do {} while (0)
|
|
#define prs_debug(...) do {} while (0)
|
|
#endif
|
|
|
|
#define pr_warn(...) std::cout << "[" << __FILE__ << ":" << __LINE__ << " " << __func__ << "] warning: " << __VA_ARGS__ << "\n"
|