Hello!
I want some functions to be inlined directly into the final code.
This works well using the inline keyword, if function declaration, definition and call are in the same source file, like:
inline void test( void );
void main(void)
{
test();
}
inline void test( void )
{
...
}
But when I move the definition to a different source file and declare the function as external like this:
extern inline void test( void );
I get the error function "test" was referenced but not defined
at the declaration line
and the warning function "test" was declared but never referenced
at the definition line.
What am I doing wrong?