Add macro AV_JOIN() for joining two tokens into one
authorMåns Rullgård <mans@mansr.com>
Wed, 27 Jan 2010 17:38:53 +0000 (17:38 +0000)
committerMåns Rullgård <mans@mansr.com>
Wed, 27 Jan 2010 17:38:53 +0000 (17:38 +0000)
Originally committed as revision 21482 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/avutil.h

index a3cc93f..01067e7 100644 (file)
 
 #define AV_STRINGIFY(s)         AV_TOSTRING(s)
 #define AV_TOSTRING(s) #s
+
+#define AV_GLUE(a, b) a ## b
+#define AV_JOIN(a, b) AV_GLUE(a, b)
+
 #define AV_PRAGMA(s) _Pragma(#s)
 
 #define AV_VERSION_INT(a, b, c) (a<<16 | b<<8 | c)