xyControl
0.1
Quadrotor Flight Controller on AVR Basis
|
Allows debug ouput and assert usage. More...
Files | |
file | debug.h |
Debug and Assert Header and Implementation. | |
Macros | |
#define | DEBUGOUT(x) printf("!%s\n", x) |
Debug Output Function. More... | |
#define | ASSERTFUNC(x) |
Simple Assert Implementation. More... | |
#define | assert(x) ASSERTFUNC(x) |
Enable assert() More... | |
#define | debugPrint(ignore) |
Disable debugPrint() More... | |
Allows debug ouput and assert usage.
Usage: Before including this file, define DEBUG as the debuglevel, eg:
for debuglevel 1. Then use debugPrint("Foo") in your code. If you need to calculate stuff for your debug output, enclose it:
#define assert | ( | x | ) | ASSERTFUNC(x) |
#define DEBUGOUT | ( | x | ) | printf("!%s\n", x) |
#define debugPrint | ( | ignore | ) |