Closed as not planned
Closed as not planned
Description
The type declared after any function is not visible as the parameter type for any other function below.
Although it is suitable for other purposes.
For example:
struct tword{
byte low;
byte high;
};
void none(){}
bool test(tword par){return true;}
void setup() {
word w;
tword* var = (tword*)(&w);
}
void loop(){}
It's ok.
void none(){}
struct tword{
byte low;
byte high;
};
//bool test(tword par){return true;}
void setup() {
word w;
tword* var = (tword*)(&w);
}
void loop(){}
Too it's ok
void none(){}
struct tword{
byte low;
byte high;
};
bool test(tword par){return true;}
void setup() {
word w;
tword* var = (tword*)(&w);
}
void loop(){}
Compilation fails with the error:
'tword' was not declared in this scope