TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - C Coding Standard
Search

Guideline:  12.3.1#1Checked automatically with code checker

Synopsis:A macro shall not comprise both the "#" and "##" operators simultaneously.
Language:C
Severity Level:7
Category:PREPROCESSING


Description:

The order of evaluation when the "#" and "##" operators are used together is undefined. Example:

#define debug(s) printf("x" #s "= %d\n", x ## s)

/* WRONG: The order in which the # and ## operators are evaluated is
 * unspecified by the C standard.
 */