You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 17, 2023. It is now read-only.
Prototypes are generated for all function definitions in .ino files that don't already have prototypes. In some rare cases prototype generation may fail for some functions. To work around this, you can provide your own prototypes for these functions.
In their terminology, prototypes are simply function declarations, or signatures.
For example, given the following sketch file:
voidsetup()
{
foo(5, 1);
}
voidloop() {}
voidfoo(int pin, int iterations)
{
// Do something with arguments
}
The following prototype/declaration will be generated above the setup function in the converted source:
voidfoo(int pin, int iterations);
This is necessary for a source file to be valid and compile as required - Otherwise the compiler will complain it can't find declarations for the function symbol (foo in our example).