Top "Stringification" questions

Stringification refers to the use of the `#` operator in a **C** preprocessor macro to use an argument as a string.

Is there a way to use C++ preprocessor stringification on variadic macro arguments?

My guess is the answer to this question is no, but it would be awesome if there was a way. …

c++ macros arguments variadic stringification
Convert any variable to string in C

Is is possible to convert any variable of any type to string? I wrote the following #define TO_STRING(val) #…

c string stringify stringification
Preprocessor macro GCC: pasting x and x does not give a valid preprocessing token

#define PATH "yagh/headers/" #define FILNAME "includefile" #define CONCAT(a__, b__) CONCAT_DO(a__, b__) #define CONCAT_DO(a__, b__) …

c gcc c-preprocessor string-concatenation stringification
Opposite of C preprocessor "stringification"

When using C preprocessor one can stringify macro argument like this: #define TO_STRING(x) "a string with " #x and …

c macros c-preprocessor stringification
Differences in Macro ## concatenation operator between Visual-C++ and gcc

I'm having a macro like this ( not exactly, but function is quite equivalent): #define STRUCTMEMBER(Member,Value) GlobalStructInstance. ## Member = Value ... …

visual-c++ gcc c-preprocessor stringification