]> wimlib.net Git - wimlib/blobdiff - include/wimlib/compiler.h
Allow hc_matchfinder and bt_matchfinder to be "templated"
[wimlib] / include / wimlib / compiler.h
index 1ea66968b10b6cbad675bcb55d55e823f95088a8..222f889bb7c308a7c37fe93e0bdc6e9b92ecaec3 100644 (file)
 #  define STATIC_ASSERT(expr)  ((void)sizeof(char[1 - 2 * !(expr)]))
 #endif
 
+#define CONCAT_IMPL(s1, s2)    s1##s2
+
+/* CONCAT() - concatenate two tokens at preprocessing time.  */
+#define CONCAT(s1, s2)         CONCAT_IMPL(s1, s2)
+
 #endif /* _WIMLIB_COMPILER_H */