-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >>>>> "Nikolaos" == Nikolaos A Margaritis <[EMAIL PROTECTED]> writes:
Nikolaos> Dear all, Nikolaos> I have a problem with the cpp. Well, I have a Nikolaos> definition: Nikolaos> #define DIM 4 Nikolaos> then I need the preprocessor to concatenate "SOME_NAME_" Nikolaos> with "DIM", ie I want to it to return SOME_NAME_4 which Nikolaos> is a function name. Try: #define DIM 4 #define MAKE_NAME(prefix, suffix) prefix ## suffix #define REALLY_MAKE_NAME(prefix, suffix) MAKE_NAME(prefix, suffix) Now calls like REALLY_MAKE_NAME(SOME_NAME_, DIM) should expand to SOME_NAME_4. Binand -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/> iD8DBQE7zuccKg6uwxEyiEwRAvW2AJ4hsOZYLYG/Y2g3eonnoGm6OQX3xwCeNtsJ FRIWPrte8fGM4eLMlE397IM= =0O8f -----END PGP SIGNATURE----- _______________________________________________ Redhat-devel-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-devel-list