Grelet Jacques
/
Ni-MH_V3
example code using statis library for temperature measurement with LM35 and LM335
Diff: include/debug.h
- Revision:
- 3:0e06300940cd
- Child:
- 5:0b3569945178
diff -r 9517837c642d -r 0e06300940cd include/debug.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/debug.h Thu Nov 22 14:47:20 2012 +0000 @@ -0,0 +1,11 @@ +// debug.h + +#ifdef DEBUG +# define DPRINTF( message ) printf message +# define DEXEC( fct ) fct +# define DGETC( ) if( tgetc() == ESC ) exit( 1 ) +#else +# define DPRINTF( message ) +# define DEXEC( fct ) +# define DGETC( ) +#endif