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
I found an issue with typedef struct in mpide-20140316. I have a workaround and I don't think this needs to be fixed but I wanted to document the issue and workaround in the event someone else comes across the same problem.
This problem does not appear to be an issue in the latest chipkit-core.
In the following code foo() compiles but bar() does not. The foo() is a workaround for the bar().
typedefstruct {
double p;
} p_struct;
voidfoo(void* h){
((p_struct *)h)->p = 666;
}
voidbar(p_struct* h){
h->p = 666;
}
voidsetup() {
// put your setup code here, to run once:
}
voidloop() {
// put your main code here, to run repeatedly:
}
The text was updated successfully, but these errors were encountered:
I found an issue with typedef struct in mpide-20140316. I have a workaround and I don't think this needs to be fixed but I wanted to document the issue and workaround in the event someone else comes across the same problem.
This problem does not appear to be an issue in the latest chipkit-core.
In the following code foo() compiles but bar() does not. The foo() is a workaround for the bar().
The text was updated successfully, but these errors were encountered: