我知道可以将像这样的东西转换成字符串:
#define STRING(s) #s printf("%s", STRING(i am string));
但有可能做相反的事情吗?
#define MyType(type) ??? MyType("uint16_t") myint = 100;
c c++ c-preprocessor
c ×1
c++ ×1
c-preprocessor ×1