Stringifying your C++ MACRO

Image Courtesy: Liam Briese (

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)”.