[FFmpeg-devel] [PATCH] Make DECLARE_ALIGNED macros take array specifiers as separate argument

Reimar Döffinger Reimar.Doeffinger
Wed Jan 20 22:30:06 CET 2010

On Wed, Jan 20, 2010 at 09:08:13PM +0000, Mans Rullgard wrote:
>  void dsputil_init_sh4(DSPContext* c, AVCodecContext *avctx);
>  void dsputil_init_vis(DSPContext* c, AVCodecContext *avctx);
> -#define DECLARE_ALIGNED_16(t, v) DECLARE_ALIGNED(16, t, v)
> -#define DECLARE_ALIGNED_8(t, v)  DECLARE_ALIGNED(8, t, v)
> +#define DECLARE_ALIGNED_16(t, v, ...) DECLARE_ALIGNED(16, t, v, __VA_ARGS__)
> +#define DECLARE_ALIGNED_8(t, v, ...)  DECLARE_ALIGNED(8, t, v, __VA_ARGS__)

Sorry for being a pain, but doesn't this kind of macro strictly not allow you
to use DECLARE_ALIGNED_16 with only two arguments?
At least gcc still complains about it with -pedantic

More information about the ffmpeg-devel mailing list