You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
298 B
14 lines
298 B
#ifndef __MACROS__
|
|
#define __MACROS__
|
|
|
|
#if DEBUG == 0
|
|
#define DEBUG_MODE 0
|
|
#else
|
|
#define DEBUG_MODE 1
|
|
#endif /*debug*/
|
|
|
|
#define log(fmt, ...) \
|
|
do { if (DEBUG_MODE) fprintf(stderr, "%s:%d:%s(): " fmt, __FILE__, \
|
|
__LINE__, __func__, __VA_ARGS__); } while (0)
|
|
|
|
#endif //macros
|
|
|