MCUXpresso IDE syntax error when C vararg macros are used

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MCUXpresso IDE syntax error when C vararg macros are used

614 次查看
alonbl
Contributor III

Hello,

I found that MCUXpresso IDE is not parsing C vararg calls correcty.

For example:

#define test(format, ...) \
printf(format __VA_OPT__(,) __VA_ARGS__)

void foo(void) {
test("a");
test("a %d", 3);
}

For each call for the `test` macro it complains about syntax error while it complex perfectly.

I am not sure this is the correct channel to report this, I would like to know what channel to report these kind of issues.

Thanks,
Alon

Using: MCUXpresso IDE v11.8.1 [Build 1197] [2023-10-27]

alonbl_0-1703344624006.png

 

标记 (2)
0 项奖励
回复
3 回复数

579 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi alonbl 

Thank you for posting your questions. 

In order to resolve your issue, please let us know

1. Your IDE version.

2. Chip part number

3. related source file.

Thanks for your cooperation,

Jun Zhang

0 项奖励
回复

575 次查看
alonbl
Contributor III

Hello @ZhangJennie ,

Thank you for joining.

1. Version is specified in my original post.

2. I do not think the version of hardware is relevant, this is a pure C+IDE issue common to all.

3. The code is provided in my original post, just copy-paste it into your IDE.

Please let me know if something else is needed.

Regards,

Alon

0 项奖励
回复

559 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

This problem is reproduced and report. Thanks for bringing the problem to our attention.

Jun Zhang

0 项奖励
回复