我的问题相对简单但对我来说还是个谜。为什么预处理程序不扩展在代码中定义的类型
经过处理BLA_Str
未扩展为bla_Str
。这种情况:
#include <stdio.h>
#include <stdint.h>
typedef BLA_Str blaInstance;
#define BLA_Str bla_Str
typedef struct
{
int bla;
}bla_Str;
void main(void){
// printf("%u\n\r",5);
}
预处理器不是通灵的。 –
FFS C编译足够慢,因为它是。你想要通过源代码多少次? –
你从哪里找到这段代码? –