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

Rule:  6.10.8.bChecked automatically with code checker

Synopsis:Only the predefined macro names __FILE__, __LINE__ and __func__ may be used.
Language:C
Severity Level:3
Category:Preprocessing Directives


Description:

Justification

Portability.

Example

printf("Filename: %s function: %s line: %d\n",
       __FILE__, __func__,  __LINE__); /* RIGHT */

Note

__func__ is a C99 extension and is only portable between C99 (and higher) compilers.