10 lines
269 B
C++
10 lines
269 B
C++
#pragma once
|
|
|
|
#if defined (QT_DEBUG) || defined (DEBUG) || defined (_DEBUG)
|
|
|
|
#define log_debugcpp(str) do { \
|
|
std::cout << "[DEBUG]" << "(" << __FILE__ << ":" << __LINE__ << "): " << str << std::endl; \
|
|
} while (0)
|
|
#else
|
|
#define log_debugcpp(str)
|
|
#endif
|