[PATCH] Re: New warning (or at least I only noticed it now)

Jean-Marc Lasgouttes lasgouttes at lyx.org
Fri Nov 10 11:23:05 UTC 2023


Le 10/11/2023 à 12:16, Pavel Sanda a écrit :
> On Fri, Nov 10, 2023 at 10:55:56AM +0100, Jean-Marc Lasgouttes wrote:
>> PS: I have to admit that I have a kink with weird uses of preprocessor
>> macros: https://gitlab.inria.fr/lasgoutt/parameters
> 
> Funny, I found # and ## operators very handy for writing commandline
> parameter parsing via simple included header as well.
> Most likely not so weird use after all...

I am tempted sometimes to use this for the parsing of LyXRC. This would 
make the code shorter and more understandable, and also reduce bugs, at 
the price of really ugly macros hidden somewhere.

JMarc


More information about the lyx-devel mailing list