sarmfsw: SMFSW Toolbox (desinged for ARM / compatible with other 8b/16b/32b platforms) 4.0rc
SMFSW collection of miscellaneous functions \& macros (desinged for ARM / compatible with other 8b/16b/32b platforms)
Loading...
Searching...
No Matches
arm_preprocess.h File Reference

ARM common pre-processing macros and directives. More...

This graph shows which files directly or indirectly include this file:

Macros

#define __STDC_C78
 Does not comply with C89 or later standard! Most likely complies with 1978 K&R C standard (informally known as C78)
 
#define CAT(a, b)
 Preprocessor Name catenation of a and b (use of XCAT is highly recommended for any need)
 
#define XCAT(a, b)
 Preprocessor Name catenation of a and b (nesting possibility)
 
#define STR(s)
 Stringify s expression.
 
#define XSTR(s)
 Stringify the result of s expression expansion (stringification of a macro expansion)
 

Detailed Description

ARM common pre-processing macros and directives.

Author
SMFSW
MISRA C:2012 Deviations

Header scope deviation has been granted for following rules:
Rule-20.5 - Advisory: #undef (misra-c2012-20.5)
Rule-20.10 - Advisory: # and ## preprocessor operators (misra-c2012-20.10)

Header scope legitimate use derogation authorized for:

Macro Definition Documentation

◆ __STDC_C78

#define __STDC_C78

Does not comply with C89 or later standard! Most likely complies with 1978 K&R C standard (informally known as C78)

◆ CAT

#define CAT ( a,
b )
Value:
a##b

Preprocessor Name catenation of a and b (use of XCAT is highly recommended for any need)

Warning
No nesting possible, use XCAT instead (unless there is a good reason not to use XCAT)

◆ STR

#define STR ( s)
Value:
#s

Stringify s expression.

◆ XCAT

#define XCAT ( a,
b )
Value:
CAT(a, b)
#define CAT(a, b)
Preprocessor Name catenation of a and b (use of XCAT is highly recommended for any need)
Definition arm_preprocess.h:45

Preprocessor Name catenation of a and b (nesting possibility)

◆ XSTR

#define XSTR ( s)
Value:
STR(s)
#define STR(s)
Stringify s expression.
Definition arm_preprocess.h:48

Stringify the result of s expression expansion (stringification of a macro expansion)