Stringifying your C++ MACRO
2 min readNov 8, 2020
Do you know that you can also stringify the MACRO?
Sometimes you want to convert MACRO arguments into a string constant. This is achieved by the stringification of MACRO.
“Stringification” means turning a code fragment into a string constant whose contents are the text for the code fragment. For example, stringifying foo (z)
results in “foo (z)”
.