I write a big library used by 3 differents sketch.
In each sketch, I use preprocessing #define XYZ variable.
In the library I test the presence of the variable to reduce the size of the generated code.
But, unfortunately, this technique doesn’t work.
The pre processor doesn’t see preprocessing variable declared in the sketch.
So, every time all of the library is compiled and the generated code is too large.
Any workaround for this problem ?
Best regards and thanks for your help.