]> www.ginac.de Git - cln.git/blobdiff - include/cln/modules.h
* include/cln/modules.h (CL_CONCATENATE): New macro.
[cln.git] / include / cln / modules.h
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 */