All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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)   a ## b
 Concatenate two preprocessor tokens. More...
 
#define CAT(a, b)   CAT_(a, b)
 
#define CAT3_(a, b, c)   a ## b ## c
 Concatenate three preprocessor tokens. More...
 
#define CAT3(a, b, c)   CAT3_(a, b, c)
 
#define CAT4_(a, b, c, d)   a ## b ## c ## d
 Concatenate four preprocessor tokens. More...
 
#define CAT4(a, b, c, d)   CAT4_(a, b, c, d)
 
#define CAT5_(a, b, c, d, e)   a ## b ## c ## d ## e
 Concatenate five preprocessor tokens. More...
 
#define CAT5(a, b, c, d, e)   CAT5_(a, b, c, d, e)
 
#define FILE_UNIQUE(x)   CAT(x, __LINE__)
 Generate an identifier unique within the file in which it is generated. More...
 
#define CAPITALIZE(name)   CAPITALIZE_##name
 Map 'name' to 'Name' via the predefined macro CAPITALIZE_name. More...
 
#define STR_(x)   #x
 Convert macro expression to a string. More...
 
#define STR(x)   STR_(x)
 

Detailed Description

General C-preprocessor macros.

Original source file macros.H

Definition in file macros.H.

Macro Definition Documentation

◆ CAT_

#define CAT_ (   a,
  b 
)    a ## b

Concatenate two preprocessor tokens.

Definition at line 35 of file macros.H.

◆ CAT

#define CAT (   a,
  b 
)    CAT_(a, b)

Definition at line 36 of file macros.H.

◆ CAT3_

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

Concatenate three preprocessor tokens.

Definition at line 39 of file macros.H.

◆ CAT3

#define CAT3 (   a,
  b,
 
)    CAT3_(a, b, c)

Definition at line 40 of file macros.H.

◆ CAT4_

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

Concatenate four preprocessor tokens.

Definition at line 43 of file macros.H.

◆ CAT4

#define CAT4 (   a,
  b,
  c,
 
)    CAT4_(a, b, c, d)

Definition at line 44 of file macros.H.

◆ CAT5_

#define CAT5_ (   a,
  b,
  c,
  d,
  e 
)    a ## b ## c ## d ## e

Concatenate five preprocessor tokens.

Definition at line 47 of file macros.H.

◆ CAT5

#define CAT5 (   a,
  b,
  c,
  d,
  e 
)    CAT5_(a, b, c, d, e)

Definition at line 48 of file macros.H.

◆ FILE_UNIQUE

#define FILE_UNIQUE (   x)    CAT(x, __LINE__)

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

Definition at line 51 of file macros.H.

◆ CAPITALIZE

#define CAPITALIZE (   name)    CAPITALIZE_##name

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

Definition at line 54 of file macros.H.

◆ STR_

#define STR_ (   x)    #x

Convert macro expression to a string.

Definition at line 57 of file macros.H.

◆ STR

#define STR (   x)    STR_(x)

Definition at line 58 of file macros.H.