comparison avutil.h @ 823:d6e37d18a0ff libavutil

Add macro AV_JOIN() for joining two tokens into one
author mru
date Wed, 27 Jan 2010 17:38:53 +0000
parents ee9a0af0b0db
children f01765adeb5c
comparison
equal deleted inserted replaced
822:a1680eca3e52 823:d6e37d18a0ff
27 */ 27 */
28 28
29 29
30 #define AV_STRINGIFY(s) AV_TOSTRING(s) 30 #define AV_STRINGIFY(s) AV_TOSTRING(s)
31 #define AV_TOSTRING(s) #s 31 #define AV_TOSTRING(s) #s
32
33 #define AV_GLUE(a, b) a ## b
34 #define AV_JOIN(a, b) AV_GLUE(a, b)
35
32 #define AV_PRAGMA(s) _Pragma(#s) 36 #define AV_PRAGMA(s) _Pragma(#s)
33 37
34 #define AV_VERSION_INT(a, b, c) (a<<16 | b<<8 | c) 38 #define AV_VERSION_INT(a, b, c) (a<<16 | b<<8 | c)
35 #define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c 39 #define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c
36 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c) 40 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)