distortos  v0.6.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...
 

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