Back to all issues

Issue 4989

Bug: Empty argument list passed to macro with 1 argument is rejected


SubmittedProductStatus
2022-05-06Reactis for CResolved in 2021.0.2 (released Dec 22, 2023; release notes)

The C preprocessor passes the empty string as a default value for missing arguments. However, in the case where there is only one argument, Reactis reports an error stating that the wrong number of arguments was passed to the macro instead of using the empty string as a default value. For example, if the macro F is defined as #define F(x) (2+x), then the macro invocation F() should expand to (2+).