以下两个写法有啥区别:看到github源码上都是第二种写法。 #define test(_a,_b) { \ printf("%c - %c\n",_a,_b); \ printf("abc\n");\ }
#define test1(_a,_b) do{ \ printf("%c - %c\n",_a,_b); \ printf("abc\n");\ }while(0)
收起
搜"do while (0)在宏中的作用"
报告相同问题?