79187995

Date: 2024-11-14 09:13:20
Score: 0.5
Natty:
Report link

Microsoft has the charizing operator #@ but that's compiler specific.

I found that *# works in both VS and gcc (and probably more) but I can't for the life of me remember where I got it from.

#define MAKECHAR(x)  *#x

causes the statement

a = MAKECHAR(b);

to be expanded to

a = 'b';
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: T. J. Evers