Loading...
Searching...
No Matches
macros.H File Reference

General C-preprocessor macros. More...

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

Go to the source code of this file.

Macros

#define CAT_(a, b)
 Concatenate two preprocessor tokens.
#define CAT(a, b)
#define CAT3_(a, b, c)
 Concatenate three preprocessor tokens.
#define CAT3(a, b, c)
#define CAT4_(a, b, c, d)
 Concatenate four preprocessor tokens.
#define CAT4(a, b, c, d)
#define CAT5_(a, b, c, d, e)
 Concatenate five preprocessor tokens.
#define CAT5(a, b, c, d, e)
#define FILE_UNIQUE(x)
 Generate an identifier unique within the file in which it is generated.
#define CAPITALIZE(name)
 Map 'name' to 'Name' via the predefined macro CAPITALIZE_name.
#define STRINGIFY(content)
 Helper macro for STRING_QUOTE.
#define STRING_QUOTE(input)
 Macro to stringify macro contents.

Detailed Description

General C-preprocessor macros.

Original source file macros.H

Definition in file macros.H.

Macro Definition Documentation

◆ CAT_

#define CAT_ ( a,
b )
Value:
a ## b
volScalarField & b

Concatenate two preprocessor tokens.

Definition at line 34 of file macros.H.

◆ CAT

#define CAT ( a,
b )
Value:
CAT_(a, b)
#define CAT_(a, b)
Concatenate two preprocessor tokens.
Definition macros.H:34

Definition at line 35 of file macros.H.

◆ CAT3_

#define CAT3_ ( a,
b,
c )
Value:
a ## b ## c

Concatenate three preprocessor tokens.

Definition at line 40 of file macros.H.

◆ CAT3

#define CAT3 ( a,
b,
c )
Value:
CAT3_(a, b, c)
#define CAT3_(a, b, c)
Concatenate three preprocessor tokens.
Definition macros.H:40

Definition at line 41 of file macros.H.

◆ CAT4_

#define CAT4_ ( a,
b,
c,
d )
Value:
a ## b ## c ## d

Concatenate four preprocessor tokens.

Definition at line 46 of file macros.H.

◆ CAT4

#define CAT4 ( a,
b,
c,
d )
Value:
CAT4_(a, b, c, d)
#define CAT4_(a, b, c, d)
Concatenate four preprocessor tokens.
Definition macros.H:46

Definition at line 47 of file macros.H.

◆ CAT5_

#define CAT5_ ( a,
b,
c,
d,
e )
Value:
a ## b ## c ## d ## e
volScalarField & e

Concatenate five preprocessor tokens.

Definition at line 52 of file macros.H.

◆ CAT5

#define CAT5 ( a,
b,
c,
d,
e )
Value:
CAT5_(a, b, c, d, e)
#define CAT5_(a, b, c, d, e)
Concatenate five preprocessor tokens.
Definition macros.H:52

Definition at line 53 of file macros.H.

◆ FILE_UNIQUE

#define FILE_UNIQUE ( x)
Value:
CAT(x, __LINE__)
#define CAT(a, b)
Definition macros.H:35

Generate an identifier unique within the file in which it is generated.

Definition at line 58 of file macros.H.

◆ CAPITALIZE

#define CAPITALIZE ( name)
Value:
CAPITALIZE_##name
auto & name

Map 'name' to 'Name' via the predefined macro CAPITALIZE_name.

Definition at line 63 of file macros.H.

◆ STRINGIFY

#define STRINGIFY ( content)
Value:
#content

Helper macro for STRING_QUOTE.

Definition at line 68 of file macros.H.

◆ STRING_QUOTE

#define STRING_QUOTE ( input)
Value:
STRINGIFY(input)
#define STRINGIFY(content)
Helper macro for STRING_QUOTE.
Definition macros.H:68

Macro to stringify macro contents.

Definition at line 73 of file macros.H.