B4R Question Defines

mrred128

Active Member
Licensed User
Longtime User
Is it possible to pass a #define statement to the underling C to make conditional changes to some library code I have to use?

An example, discussed in another question, I had problems with my ESP12E having a different I2C bus for a built in oled display. A work around would be to hack the library (always a bad idea) and make it unusable for every other normal display.

If I could use some #ifdef statements to conditional compile, it would solve my problem. Using the "#if C" would put it in there, but where could I put it to guarantee it get's defined before the class get's loaded up.
 

mrred128

Active Member
Licensed User
Longtime User
A passing thought..... Is there a way to leverage the conditional symbols in the project->build configuration dialog?
 
Upvote 0
Top