Why defining a macro of parenthesis-enclosing pointer type not allowed in C?

后端 未结 0 995
没有蜡笔的小新
没有蜡笔的小新 2021-01-05 06:01

Why is the following code resulting in compilation error:

#define PASS_TYPE(x) (x*)

void foo(PASS_TYPE(int) a) {
    // ...
}

The error says

相关标签:
回答
  • 消灭零回复
提交回复
热议问题