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