[previous] 0341 [next] Using the stringify operator '#'.
K+R compatibility REFERENCE - ISO:C90-6.8.3.2 The # Operator

The '#' preprocessing operator (sometimes referred to as the stringify operator) has been used in the definition of a macro. This was not supported in early versions of the C language.

Be aware that message 0341 is only generated when the "-k+r s" option is enabled.

For example:


/*PRQA S 553,2017,3429 ++*/
/*****************************
 * OPTIONS: -k+r s
 ****************************/

#define STRINGIFY(A) #A                /* Message 0341 */


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