I have some macros in code
#define NUM_IN 3
#define NUM_1 1
#define NUM_2 2
#define NUM_3 3
#define MY(NUMBER) NUM_##NUMBER
so if I'm calling the macro
MY(NUM_IN)
I'm expecting after preprocessing result as 3
but I'm getting NUM_NUM_IN
So, what I should do so preprocessor will take input as
step 1
MY(NUM_IN)
step 2
MY(3)
step 3
NUM_3
step 4
3
Please let me know what I'm missing. I am new to stackoverflow so please guide me to the proper channel if I am wrong.
Thanks