/* return a+b 带返回值的宏定义 */ #define A_PLUS_B_MACRO(a, b) ({int ret; ret = (a) + (b); ret;}) #define A_PLUS_B_MACRO2(a, b) ({int ret; ret = add((a), (b)); ret;}) 内核打印 printk(" %s \t %d\n",__func__,__LINE__); printk(" %s \t %d \t va...
/* return a+b 带返回值的宏定义 */ #define A_PLUS_B_MACRO(a, b) ({int ret; ret = (a) + (b); ret;}) #define A_PLUS_B_MACRO2(a, b) ({int ret; ret = add((a), (b)); ret;}) 内核打印 printk(" %s \t %d\n",__func__,__LINE__); printk(" %s \t %d \t va...