distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
CONCATENATE.h File Reference

CONCATENATE() macros. More...

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

Go to the source code of this file.

Macros

#define CONCATENATE2_IMPLEMENTATION(a, b)   a ## b
 Implementation of CONCATENATE2() More...
 
#define CONCATENATE2(a, b)   CONCATENATE2_IMPLEMENTATION(a, b)
 Concatenates 2 tokens. More...
 
#define CONCATENATE3_IMPLEMENTATION(a, b, c)   a ## b ## c
 Implementation of CONCATENATE3() More...
 
#define CONCATENATE3(a, b, c)   CONCATENATE3_IMPLEMENTATION(a, b, c)
 Concatenates 3 tokens. More...
 
#define CONCATENATE4_IMPLEMENTATION(a, b, c, d)   a ## b ## c ## d
 Implementation of CONCATENATE4() More...
 
#define CONCATENATE4(a, b, c, d)   CONCATENATE4_IMPLEMENTATION(a, b, c, d)
 Concatenates 4 tokens. More...
 

Detailed Description

CONCATENATE() macros.

Author
Copyright (C) 2018 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
License
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Macro Definition Documentation

◆ CONCATENATE2

#define CONCATENATE2 (   a,
 
)    CONCATENATE2_IMPLEMENTATION(a, b)

Concatenates 2 tokens.

Parameters
[in]ais the first token
[in]bis the second token

◆ CONCATENATE2_IMPLEMENTATION

#define CONCATENATE2_IMPLEMENTATION (   a,
 
)    a ## b

Implementation of CONCATENATE2()

Parameters
[in]ais the first token
[in]bis the second token

◆ CONCATENATE3

#define CONCATENATE3 (   a,
  b,
 
)    CONCATENATE3_IMPLEMENTATION(a, b, c)

Concatenates 3 tokens.

Parameters
[in]ais the first token
[in]bis the second token
[in]cis the third token

◆ CONCATENATE3_IMPLEMENTATION

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

Implementation of CONCATENATE3()

Parameters
[in]ais the first token
[in]bis the second token
[in]cis the third token

◆ CONCATENATE4

#define CONCATENATE4 (   a,
  b,
  c,
 
)    CONCATENATE4_IMPLEMENTATION(a, b, c, d)

Concatenates 4 tokens.

Parameters
[in]ais the first token
[in]bis the second token
[in]cis the third token
[in]dis the fourth token

◆ CONCATENATE4_IMPLEMENTATION

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

Implementation of CONCATENATE4()

Parameters
[in]ais the first token
[in]bis the second token
[in]cis the third token
[in]dis the fourth token