MCUXpresso IDE syntax error when C vararg macros are used

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MCUXpresso IDE syntax error when C vararg macros are used

737件の閲覧回数
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 返答(返信)

702件の閲覧回数
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 件の賞賛
返信

698件の閲覧回数
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 件の賞賛
返信

682件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

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

Jun Zhang

0 件の賞賛
返信