[previous] 3453 [next] A function could probably be used instead of this function-like macro.
Macro Definition

This macro appears to be in the form of an expression and could therefore, perhaps, be replaced with a function. It is not always practical or convenient to replace function-like macros with functions; but functions are generally safer than macros because type-checking can be enforced on arguments.

Message 3453 is generated for a function-like macro which ...

For example:


/*PRQA S 553,2017,3429 ++*/

#define M1(a, b, c)   ((a) + (b) + (c))       /* Message 3453 */
#define M6(A,B)       ((A)[1] + (B)[2])       /* Message 3453 */

See also:

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents