Function prototypes not generated for variable argument functions [imported] #992
Labels
Component: Preprocessor
The Arduino sketch preprocessor converts .ino files into C++ code before compilation
Milestone
This is Issue 992 moved from a Google Code project.
Added by 2012-07-27T17:08:51.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Defect, Priority-Medium, Component-IDE
Original description
What steps will reproduce the problem?
void nice_func(const char *fmt, ...)
{
// do nothing
}
loop function:
void loop()
{
nice_func("test", 1);
}
During compilation of the whole project Arduino gives error that
'nice_func' was not declared in this scope.
When we peek into temporary build directory then we can see that Arduino is not inserting that function prototype definition into final .cpp file.
For example if you change inside additional ".ino" file this function definition to:
void nice_func(const char *fmt, int i)
{
// do nothing
}
and now it'll compile without errors.
It seems that file building functionality (part that is inserting prototype definitions)
inside Arduino is skipping functions having "..." inside arguments area.
I'm using Arduino 1.0.1 on WinXP x64.
The text was updated successfully, but these errors were encountered: