Compiler Error C2010
'character' : unexpected in macro formal parameter list
The character is used incorrectly in the formal parameter list of a macro definition. Remove the character to resolve the error.
The following sample generates C2010:
// C2010.cpp
// compile with: /c
#define mymacro(a|) (2*a) // C2010
#define mymacro(a) (2*a) // OK
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for