Edit

Share via


Compiler Error C2162

expected macro formal parameter

The token following a stringizing operator (#) or a charizing operator (#@) is not a formal parameter.

Example

The following example generates C2162:

// C2162.cpp
// compile with: /c
#define make_string1(s) #    // C2162
#define make_string2(s) #s   // OK