Hi,
I have declared the following macro :
# define old(declaration) (declaration)
and then used it :
void a_proc ()
{
old(int i = 0);
}
But I get the errors :
error C2146: syntax error : missing ')' before identifier 'i'
error C2065: 'i' : undeclared identifier
error C2059: syntax error : ')'
I thought we can put what we want in macros. What is the problem here?
--
Globos
I have declared the following macro :
# define old(declaration) (declaration)
and then used it :
void a_proc ()
{
old(int i = 0);
}
But I get the errors :
error C2146: syntax error : missing ')' before identifier 'i'
error C2065: 'i' : undeclared identifier
error C2059: syntax error : ')'
I thought we can put what we want in macros. What is the problem here?
--
Globos