Hi, I need help doing the following:
a preprocessor macro label(x) shall output "#x", e.g.,
#define label(x) ...
if I call label(aname), the output shall be "#aname"
I know, that the following tries were errors.
#define label(x) #x // leads to "x"
#define label(x) \#x // is \"x"
#define label(x) "#x" // is "#x" (but not the content of x") "#otto"
It may exist a kind of escaped # (pound), but I don't know, how to escape...
Edit: I run "gcc -E test -o test.html" to get the output. The point is: How do I print out a hash mark (#) with a makro only using preprocessor's capabilities?