MCUXpresso IDE syntax error when C vararg macros are used

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCUXpresso IDE syntax error when C vararg macros are used

612 Views
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

 

Tags (2)
0 Kudos
Reply
3 Replies

577 Views
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 Kudos
Reply

573 Views
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 Kudos
Reply

557 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

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

Jun Zhang

0 Kudos
Reply