kjhjhkj

Dependencies:   NetServices mbed C027_Supports mbed-rpcx

Committer:
irsanjul
Date:
Tue Aug 06 12:59:05 2019 +0000
Revision:
0:64967b7043c2
testes

Who changed what in which revision?

UserRevisionLine numberNew contents of line
irsanjul 0:64967b7043c2 1 #ifndef __DEBUG_H__
irsanjul 0:64967b7043c2 2 #define __DEBUG_H__
irsanjul 0:64967b7043c2 3
irsanjul 0:64967b7043c2 4
irsanjul 0:64967b7043c2 5 #ifdef DEBUG
irsanjul 0:64967b7043c2 6 #define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
irsanjul 0:64967b7043c2 7 #define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
irsanjul 0:64967b7043c2 8 #define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
irsanjul 0:64967b7043c2 9 #else
irsanjul 0:64967b7043c2 10 #define INFO(x, ...)
irsanjul 0:64967b7043c2 11 #define WARN(x, ...)
irsanjul 0:64967b7043c2 12 #define ERR(x, ...)
irsanjul 0:64967b7043c2 13 #endif
irsanjul 0:64967b7043c2 14
irsanjul 0:64967b7043c2 15
irsanjul 0:64967b7043c2 16 #endif