#define SATA_PORT_0 "/sata-ahci/port0"
#define SATA_PORT_1 "/sata-ahci/port1"
#define SATA_PORT_2 "/sata-ahci/port2"
#define SATA_PORT_3 "/sata-ahci/port3"
#define SATA_PORT_4 "/sata-ahci/port4"
#define SATA_PORT_5 "/sata-ahci/port5"
#define SATA_NODE(p) HOW TO DEFINE THIS?!!
int main()
{
int i;
for (i=0;i<6;i++)
{
printf("%s\n", i, SATA_NODE(i));
}
return 0;
}
问题:如何定义上述宏,以在 GCC 中打印字符串?