Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
not enough arguments for function-like macro invocation 'identifier'
Remarks
The number of formal parameters in the macro definition exceeds the number of actual parameters in the macro. Macro expansion substitutes empty text for the missing parameters.
Example
The following example generates C4003:
// C4003.cpp
// compile with: /WX
#define test(a,b) (a+b)
int main()
{
int a = 1;
int b = 2;
a = test(b); // C4003
// try..
a = test(a,b);
}