C语言带返回值的宏

define TWICE(x) \

({
int _ret;
ret = (x) << 1;
ret;
})

int twice(int c)
{
return TWICE(c);
}

posted on 2018-05-20 16:25  zlyang  阅读(2442)  评论(0编辑  收藏  举报

导航