mobile robot control with artificial hormones

Dependencies:   Communication_Robot RTC-DS1307 iSerial mbed

Fork of Andante_v00 by potiwat ngamkajornwiwat

Committer:
soulx
Date:
Wed Jul 15 08:34:08 2015 +0000
Revision:
5:aae71a94cb41
test

Who changed what in which revision?

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