22 lines
357 B
C++
22 lines
357 B
C++
#ifndef COMMON_HPP
|
|
#define COMMON_HPP
|
|
|
|
#define DBG_LEVEL_NONE 0
|
|
#define DBG_LEVEL_NORMAL 2
|
|
#define DBG_LEVEL_VERBOSE 3
|
|
|
|
|
|
|
|
#define DEBUG_LEVEL DBG_LEVEL_NORMAL
|
|
|
|
|
|
|
|
#if defined(DEBUG_LEVEL) && DEBUG_LEVEL >= DBG_LEVEL_NORMAL
|
|
# define DEBUG_PRINT(...) do{fprintf(stderr, __VA_ARGS__);}while(0)
|
|
#else
|
|
# define DEBUG_PRINT(...) do{}while(0)
|
|
#endif
|
|
|
|
|
|
#endif
|