Closed NicoHood closed 8 years ago
Another example this the same error. Might be two separat issues, I dont know whats behind the code. So I post it here, pretending its the same reason which causes this:
void setup() {}
void loop() {
int8_t newData = adalight();
}
//#define ADALIGHT_USE_TEMPLATE
#ifdef ADALIGHT_USE_TEMPLATE
#error
#else
// commenting this header makes the sketch compile
int8_t adalight();
#endif
int8_t adalight()
{
return 0;
}
In your second sketch, int8_t adalight();
is a prototype and you must specify it at the beginning of the sketch
Your first sketch still doesn't compile, unless you rename int16_t adalight_template()
to int16_t adalight()
. CTags gets fooled by define and it's not even seeing int8_t adalight()
More info at http://linux.die.net/man/1/ctags, scroll down to "Operational Details"
So this is intended?
Error in code above, should be self explaining.