summaryrefslogtreecommitdiff
path: root/libavutil/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil/internal.h')
-rw-r--r--libavutil/internal.h4
1 files changed, 4 insertions, 0 deletions
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