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

Rule:  6.10.bChecked automatically with code checker

Synopsis:Only perform token pasting with the token pasting operator (##).
Language:C
Severity Level:8
Category:Preprocessing Directives


Description:

Justification

ANSI C provides the ## operator as a portable alternative to implementation specific forms of token pasting.

Example

#define fullname(comp, func) comp ## func /* RIGHT */
#define fullname(comp, func) comp/**/func /* WRONG */

fullname(COMPONENTX_, set_shape)