amperka/ino — pull request #108 by larsenglund (2013-09-15 18:50:37+00:00)
Title: Solves problem with error '<enum|struct|typedef>' not declared in this scope.

Solves issues https://github.com/amperka/ino/issues/107 and https://github.com/amperka/ino/issues/74

Made it so that the preprocess adds all include statements found in the sketch to the beginning of the file, before any prototypes. This fixes problems with "xxx was not declared in this scope" when using enums, structs or typedefs in the function prototypes.

These are the first lines of python I ever write so please be gentle in the comments..

I messed up the first pull request and made it to a fork of https://github.com/amperka/ino - hopefully I got it right this time :)