I have several
#ifdef DEBUG
statements in a library file. I'd like to be able to activate those from my main c file without editing the library file. Is there a way to do that? I can't get it to work.
So the Main c file has
#define DEBUG
#include <library.h>
where library.h has all the ifdef statements in them. But this won't work, at least in the Arduino IDE. If i define DEBUG in the library header fille, then they all work.