Compiler Error C2162
expected macro formal parameter
The token following a stringizing operator (#) is not a formal parameter name.
Example
The following sample generates C2162:
// C2162.cpp
// compile with: /c
#include <stdio.h>
#define print(a) printf_s(b) // OK
#define print(a) printf_s(#b) // C2162
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