I've tried to declare a function pointer (for a function returning an int) with 0012 on linux (it shows "0012 Alpha")
Code (minimal stripped-down version that reproduces problem):
int (*statefun)();
void loop ()
{int a = 1;}
void setup ()
{int b = 2;}
This produces the error message (already shown by others):
error: expected unqualified-id before 'int'
When I declare the function pointer as follows:
typedef int zoppel;
zoppel (*statefun)();
the sketch compiles fine.
What black magic are you guys doing to the builtin type int?
Is there any compile-time switch to turn off that black magic -- I'd gladly do without function-style casting for my projects.