<div dir="ltr"><div dir="ltr">sorry, I saw it before and it looked reasonable/harmless to me.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 7, 2021 at 11:55 PM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 14/12/2020 09:44, Sebastian Huber wrote:<br>
<br>
> Change RTEMS_STRING() and RTEMS_XSTRING() to accept a variable number of<br>
> arguments which is stringified.  This can be used for example to create<br>
> register lists for inline assembler statements.<br>
> ---<br>
>   cpukit/include/rtems/score/basedefs.h | 16 ++++++++--------<br>
>   1 file changed, 8 insertions(+), 8 deletions(-)<br>
><br>
> diff --git a/cpukit/include/rtems/score/basedefs.h b/cpukit/include/rtems/score/basedefs.h<br>
> index 0081dbfbe4..87a693e180 100644<br>
> --- a/cpukit/include/rtems/score/basedefs.h<br>
> +++ b/cpukit/include/rtems/score/basedefs.h<br>
> @@ -335,13 +335,13 @@ extern "C" {<br>
>   /**<br>
>    * @ingroup RTEMSAPIBaseDefs<br>
>    *<br>
> - * @brief Stringifies _x without expanding.<br>
> + * @brief Stringifies the arguments without expanding them.<br>
>    *<br>
> - * @param _x is the token to stringify.<br>
> + * @param ... are the arguments to stringify.<br>
>    *<br>
> - * @return Returns the stringification of the token _x.<br>
> + * @return Returns the stringification of the arguments.<br>
>    */<br>
> -#define RTEMS_STRING( _x ) #_x<br>
> +#define RTEMS_STRING( ... ) #__VA_ARGS__<br>
>   <br>
>   /* Generated from spec:/rtems/basedefs/if/typeof-refx */<br>
>   <br>
> @@ -898,13 +898,13 @@ extern "C" {<br>
>   /**<br>
>    * @ingroup RTEMSAPIBaseDefs<br>
>    *<br>
> - * @brief Stringifies the expansion of _x.<br>
> + * @brief Stringifies the expansion of the arguments.<br>
>    *<br>
> - * @param _x is the token expand and stringify.<br>
> + * @param ... are the arguments to expand and stringify.<br>
>    *<br>
> - * @return Returns the stringification of the expansion of token _x.<br>
> + * @return Returns the stringification of the expansion of the arguments.<br>
>    */<br>
> -#define RTEMS_XSTRING( _x ) RTEMS_STRING( _x )<br>
> +#define RTEMS_XSTRING( ... ) RTEMS_STRING( __VA_ARGS__ )<br>
>   <br>
>   /* Generated from spec:/rtems/basedefs/if/define-global-symbol */<br>
Any objections to push this? It makes the macro a bit more flexible. <br>
Linux uses the same approach.<br>
<br>
-- <br>
embedded brains GmbH<br>
Herr Sebastian HUBER<br>
Dornierstr. 4<br>
82178 Puchheim<br>
Germany<br>
email: <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
phone: +49-89-18 94 741 - 16<br>
fax:   +49-89-18 94 741 - 08<br>
<br>
Registergericht: Amtsgericht München<br>
Registernummer: HRB 157899<br>
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler<br>
Unsere Datenschutzerklärung finden Sie hier:<br>
<a href="https://embedded-brains.de/datenschutzerklaerung/" rel="noreferrer" target="_blank">https://embedded-brains.de/datenschutzerklaerung/</a><br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div>