有没有办法让 gcc 预处理器用 typedef 定义的类型替换类型,即
像这样的东西:
typedef unsigned char Uint8
int main(void)
{
Uint8 a = 1;
Uint8 b = 2;
Uint8 c;
c = a + b;
return 0;
}
会被预处理成这样的东西:
int main(void)
{
unsigned char a = 1;
unsigned char b = 2;
unsigned char c;
c = a + b;
return 0;
}