[PATCH 00/20] Create and use hidden aliases in libgmp.so

Niels Möller nisse at lysator.liu.se
Tue Mar 5 11:45:28 CET 2013

Torbjorn Granlund <tg at gmplib.org> writes:

> Ehum, I don't understand with which cpp quirk that indirection is
> coping...

The point of the indirection is to get macro arguments expanded *before*
substitution. Which matters only (I think) when using the # and ## cpp
operators. Example: gcc -E on this file

  #define S1(x) prefix_##x
  #define S(x) S1(x)
  #define FOO bar



> Perhaps we should use m4 for preprocessing C instead?  :-)

That would certainly cause some additional confusion. Any suggestion for
appropriate m4 quote characters to use? ;-)


Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.

More information about the gmp-devel mailing list