[FFmpeg-devel] Moving if(constant expression) to preprocessor?

Luca Barbato lu_zero
Sun Sep 19 22:48:34 CEST 2010

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?



Luca Barbato

More information about the ffmpeg-devel mailing list