J
jamihuq
Can someone please tell me what I am doing wrong. I wrote this static
inline function to test another function and I am getting errors which
make no sense to me.
thanks
Jami
/* test2.h */
static inline unsigned int test3(unsigned int aValue)
{
aValue++;
return aValue;
}
--------------------Configuration: test2 - Win32
Debug--------------------
Compiling...
Text2.c
error C2054: expected '(' to follow 'inline'
error C2085: 'test3' : not in formal parameter list
error C2143: syntax error : missing ';' before '{'
error C2054: expected '(' to follow 'inline'
error C2085: 'test3' : not in formal parameter list
error C2143: syntax error : missing ';' before '{'
Error executing cl.exe.
test2.exe - 6 error(s), 0 warning(s)
inline function to test another function and I am getting errors which
make no sense to me.
thanks
Jami
/* test2.h */
static inline unsigned int test3(unsigned int aValue)
{
aValue++;
return aValue;
}
--------------------Configuration: test2 - Win32
Debug--------------------
Compiling...
Text2.c
error C2054: expected '(' to follow 'inline'
error C2085: 'test3' : not in formal parameter list
error C2143: syntax error : missing ';' before '{'
error C2054: expected '(' to follow 'inline'
error C2085: 'test3' : not in formal parameter list
error C2143: syntax error : missing ';' before '{'
Error executing cl.exe.
test2.exe - 6 error(s), 0 warning(s)