Gentlemen,
I'm getting an error when I declare a function static inline. Could anyone give me a hand and try telling me why. the following function gives an error:
static inline int test(void) { return 0x10000; }
warning: #260-D: explicit type is missing ("int" assumed) error: #65: expected a ";"
if I remove 'inline' keyword it compiles without errors.
Thanks, Gil
'inline' is a keyword in C99 and C++; so the original code is legal in those languages. '__inline' is an implementation-specific extension that armcc allows in C90, C99 and C++ (as do some other compilers).