B
Boris Du¹ek
Hi,
I have trouble defining a macro - see the following code:
#define LETTER_STRAIGHT(let) let = L'#let'
enum Letter {
LETTER_STRAIGHT(A),
LETTER_STRAIGHT(B),
LETTER_STRAIGHT(C),
};
I want it to expand to this:
enum Letter {
A = L'A',
B = L'B',
C = L'C',
};
However looking at the preprocessing output, it expands to this:
enum Letter {
A = L'#let',
B = L'#let',
C = L'#let',
};
How do I achieve the expansion in the way I want?
Thanks, Boris
I have trouble defining a macro - see the following code:
#define LETTER_STRAIGHT(let) let = L'#let'
enum Letter {
LETTER_STRAIGHT(A),
LETTER_STRAIGHT(B),
LETTER_STRAIGHT(C),
};
I want it to expand to this:
enum Letter {
A = L'A',
B = L'B',
C = L'C',
};
However looking at the preprocessing output, it expands to this:
enum Letter {
A = L'#let',
B = L'#let',
C = L'#let',
};
How do I achieve the expansion in the way I want?
Thanks, Boris