2020-04-16 13:49:47 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 Gunar Schorcht
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
* directory for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup core_macros
|
|
|
|
* @{
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @brief Macro to return string representation of x
|
|
|
|
*
|
|
|
|
* @author Gunar Schorcht <gunar@schorcht.net>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MACROS_XTSTR_H
|
|
|
|
#define MACROS_XTSTR_H
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @def XTSTR
|
|
|
|
*
|
2022-09-15 12:12:23 +02:00
|
|
|
* @brief A macro to return the string representation of x
|
2020-04-16 13:49:47 +02:00
|
|
|
*/
|
|
|
|
#ifndef XTSTR
|
2022-03-10 10:12:44 +01:00
|
|
|
# ifndef DOXYGEN
|
|
|
|
# define _XTSTR(x) # x
|
|
|
|
# endif /* DOXYGEN */
|
|
|
|
# define XTSTR(x) _XTSTR(x)
|
2020-04-16 13:49:47 +02:00
|
|
|
#endif /* XTSTR */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* MACROS_XTSTR_H */
|
|
|
|
/** @} */
|