.

Dependencies:   RTC-DS1307 Servo mbed

Fork of Progetto_Tandem_Finale by Tandem

Committer:
Karrots3
Date:
Tue Apr 19 10:40:34 2016 +0000
Revision:
3:7634bf23197f
Parent:
2:e67f3b884a1c
.

Who changed what in which revision?

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