[FFmpeg-devel] [PATCHv2] avutil/attributes: extend av_uninit to clang

Nicolas George george at nsup.org
Thu Oct 8 09:11:50 CEST 2015


Le sextidi 16 vendémiaire, an CCXXIV, Ganesh Ajjanagadde a écrit :
> Anyway, it seems to me that for whatever reason short circuit
> evaluation is not respected by the GCC preprocessor (I lack the energy
> or interest to investigate why, it seems ridiculous to me):
> https://bugs.webkit.org/show_bug.cgi?id=133785

Do not believe everything you read from apple developers, this statement is
completely wrong.

Short-circuit evaluation works with the preprocessor, you can check with
this for example:

#if defined(x) && x    

What does not work is a malformed expression:

#if defined(x) && x(42)

... because x(42), if x is not defined, expands to 0(42), which is not
syntactically valid as an expression.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151008/d0ade39a/attachment.sig>


More information about the ffmpeg-devel mailing list