amperka / ino

Command line toolkit for working with Arduino hardware
http://inotool.org
MIT License
1.08k stars 232 forks source link

preproc places function prototypes before typedefs causing "does not name a type" error #225

Open andrewhamon opened 9 years ago

andrewhamon commented 9 years ago

Even if my typedef code is before the functions and I make my own function prototypes, functions returning a custom type cause an error (because the preprocessor puts function prototypes with an unknown type at the start of the file, before the typedefs).

nophead commented 9 years ago

This is an Arduino IDE feature, see #224 for solution.