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

Rule:  6.10.3.2.bChecked automatically with code checker

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


Description:

Justification

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.
 */