Answer the question
In order to leave comments, you need to log in
How to use define constants when concatenating?
Let there be a code:
#define N n
#define DECODE(q,w,e,r) q ## w ## e ## r
#define START DECODE(m,a,i,N)
Then when concatenating we get START = maiN . I have two questions:
1) Why is the name of the constant N substituted, and not its value (n)?
2) Is it possible to use define constants when concatenating in a code section, as in the example above? To get START = main.
I work in VS 2013.
Please, if you do not answer the question directly, then at least poke your face into the necessary literature to read.
Thanks
Answer the question
In order to leave comments, you need to log in
I ask if you do not answer the question directly, then at least poke your face into the necessary literature to read.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question