God, I so badly want to add some defines to the io headers in my next version of compiler package... #88
SpenceKonde
started this conversation in
Future development discussion
Replies: 1 comment
-
Maybe it would be better to make an ioaddendum.h, that pulls n a sepaate fle for each part with those defnes in it, and package that with the core, and jst have Arduino.h pull that ni afte io.h.... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It's just a few regex operations.....
find:
(.*\ntypedef.*enum|.*_gc.*|/\*\n-*\n.*\n-*\n\*/)
"find all" ctrl+c ctrl+n ctrl+v
replace
typedef.*\n
with `` (empty string)replace all
replace
*(.*)_gc = (\(.*\)),
with#define \1_GC \2
Yields sections that look like:
Then copy-paste the 1500-some lines of that (for AVR DA) onto the bottom of the i/o header
Why? So that you can use group codes in #if preprocessor macros!
Beta Was this translation helpful? Give feedback.
All reactions