visenri
visenri
I've also been thinking recently about a new pseudo instruction like this. It could be handy, it makes the code more readable and less error prone.
Using "pico_generate_pio_header_pre" as I've implemented here: https://github.com/visenri/pico_cmake_extras allows the use of all c preprocessor features. So it can be used to include other files or use preprocessor macros defined elsewhere....
> [@visenri](https://github.com/visenri) As already mentioned, I don't have much familiarity with preprocessors, but just out of curiosity how does your approach address the "that doesn't work well with the syntax...
Aside from that consideration, you can use the preprocessor as long as you keep the syntax valid. **VALID:** ```c #define TEST_VALUE (1 > 0) ... #if TEST_VALUE != 0 set...