STM32 core 3.2.0-dev
Arduino core for STM32 based boards: API reference
← STM32duino documentation
Loading...
Searching...
No Matches
utils.h File Reference

Preprocessor helpers: string concatenation and stringification. More...

Macros

#define CONCAT(s1, s2)
 Concatenate 2 string literals.
#define CONCATS(s1, s2)
 Concatenate 2 string literals separated by a space.
#define XSTR(s)
 Stringification of a macro argument, after macro expansion.
#define STR(s)
 Stringification of a macro argument, without macro expansion.

Detailed Description

Preprocessor helpers: string concatenation and stringification.

Macro Definition Documentation

◆ CONCAT

#define CONCAT ( s1,
s2 )
Value:
(s1 s2)

Concatenate 2 string literals.

◆ CONCATS

#define CONCATS ( s1,
s2 )
Value:
(s1" " s2)

Concatenate 2 string literals separated by a space.

◆ STR

#define STR ( s)
Value:
#s

Stringification of a macro argument, without macro expansion.

◆ XSTR

#define XSTR ( s)
Value:
STR(s)
#define STR(s)
Stringification of a macro argument, without macro expansion.
Definition utils.h:16

Stringification of a macro argument, after macro expansion.