From d4db7c334b6665b49d3f98bd5d7e0088f598d7b1 Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Fri, 9 Aug 2013 20:50:29 +0200 Subject: Integrate accessors.h header into internal.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I have no idea why I added a separate header, I think there is no good reason for it. Signed-off-by: Reimar Döffinger --- libavutil/internal.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavutil/internal.h') diff --git a/libavutil/internal.h b/libavutil/internal.h index 680d600451..786bd867db 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -76,6 +76,10 @@ #define FF_MEMORY_POISON 0x2a +#define MAKE_ACCESSORS(str, name, type, field) \ + type av_##name##_get_##field(const str *s) { return s->field; } \ + void av_##name##_set_##field(str *s, type v) { s->field = v; } + // Some broken preprocessors need a second expansion // to be forced to tokenize __VA_ARGS__ #define E1(x) x -- cgit v1.2.3