[FFmpeg-devel] Moving if(constant expression) to preprocessor?
Mon Sep 20 00:02:23 CEST 2010
Luca Barbato wrote:
> On 09/19/2010 09:38 PM, Axel Holzinger wrote:
> >> $ cat foo.c
> >> > #define AV_IF_0(t, f) f
> >> > #define AV_IF_1(t, f) t
> >> > #define AV_IF(c, t, f) AV_IF2(c, t, f) #define AV_IF2(c, t, f)
> >> > AV_IF_##c(t, f)
> > Smaller and simpler, perfect. I'm fine with that and works for me.
> You can use it on your own and see how and when it breaks...
> Still which compiler are you using? Exactly what are you
> trying to debug?
Already replied in another post: ICL.
More information about the ffmpeg-devel