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]
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
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
This problem is reproduced and report. Thanks for bringing the problem to our attention.
Jun Zhang