Prototype Generation With Typedef'd Types #298
Labels
help wanted
Assistance from the community is especially welcome
topic: code
Related to content of the project itself
topic: preprocessor
Related to sketch preprocessing
type: enhancement
Proposed improvement
When the Arduino IDE attempts to generate the prototypes for a function where the types that are a part of that prototype are defined in a header file, the IDE does not always include the header file defining the type before the generated prototype is emitted to the file that is passed into G++.
(Code is available for download here)
arduino-ide-prototype-bug/arduino-ide-prototype-bug.ino
arduino-ide-prototype-bug/add.ino
arduino-ide-prototype-bug/number.h
Build Output:
C++ file generation:
Workaround: Including all header files into the main INO fixes the problem, but that should not be required.
(originally at arduino/Arduino#8050)
The text was updated successfully, but these errors were encountered: