Menu

#97 Malformed macro parameter list

v6.0.1
open
None
1
2025-09-08
2025-09-08
No

I have a case where in the source file:

if !SOME_MACRO(8, 1)

endif

When I attempt to execute:
coan.exe source - DSOME_MACRO(8,1)=1 file.c

The tool reports:
coan.exe: while parsing options: error 0x00811: Malformed macro parameter list for symbol " SOME_MACRO "
coan.exe: while parsing options: progress 0x02101: Completed with errors, exit code 0x04

When I attempt to execute:
coan.exe source - DSOME_MACRO=1 file.c

The tool reports:
error 0x00812: "SOME_MACRO" takes 0 arguments; 2 provided
coan.exe: progress 0x02101: Completed with errors, exit code 0x04
coan.exe: info 0x02201: 1 out of 1 input files were reached; 0 files were not reached
coan.exe: info 0x02202: 0 out of 1 files reached were valid; 1 were abandoned due to parse errors

Discussion


Log in to post a comment.

MongoDB Logo MongoDB