]> www.ginac.de Git - cln.git/commitdiff
* include/cln/modules.h (CL_CONCATENATE): New macro.
authorRichard Kreckel <kreckel@ginac.de>
Mon, 27 May 2002 17:03:44 +0000 (17:03 +0000)
committerRichard Kreckel <kreckel@ginac.de>
Mon, 27 May 2002 17:03:44 +0000 (17:03 +0000)
ChangeLog
include/cln/modules.h

index c6cf2fbd931a106ca94df1b3ae6b3530c26134dd..24220bb2cf5190cb7a4e8575f872c69286927e62 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-05-27  Richard Kreckel  <kreckel@ginac.de>
+
+       * include/cln/modules.h (CL_CONCATENATE): New macro.
+
 2002-05-10  Richard Kreckel  <kreckel@ginac.de>
 
        * doc/cln.tex (Building the library): Update recommendations for 
index b7ff435cacdae2fc26c731ee1e1de9cbbb563f48..90addd2738fba28837e8a09b7a8bf703bfec422a 100644 (file)
   #define CL_REQUIRE(module)
 #endif
 
+// Concatenation of macroexpanded tokens.
+// Equivalent to CL_CONCAT in src/base/cl_macros.h which we do not want
+// to expose, however.
+#define CL_CONCATENATE_(xxx,yyy)  xxx##yyy
+#define CL_CONCATENATE(xxx,yyy)  CL_CONCATENATE_(xxx,yyy)
+
 // Sometimes a link time dependency is needed, but without requirements
 // on initialization order.
 //
         abort();                                                       \
     }                                                                  \
   }                                                                    \
-  dummy##_instance;
+  CL_CONCATENATE(dummy,_instance);
 #endif
 
 #endif /* _CL_MODULES_H */