I want to smooth out the result of a macro extension.
I tried the following:
#define QUOTE(str) #str #define TEST thisisatest #define TESTE QUOTE(TEST)
And TESTE expands to: "TEST" while I'm trying to get "thisisatest". I know that this is the correct preprocessor behavior, but can someone help me in order to achieve another?
Using TESTE
c-preprocessor stringification
almosnow Aug 05 '10 at 21:30 2010-08-05 21:30
source share