From 31f793b71a6259b6673172e803f863442cb66ebd Mon Sep 17 00:00:00 2001 From: Avinash Sonawane Date: Mon, 16 Aug 2021 20:05:59 +0000 Subject: [PATCH] Docs: Mention that G_VA_COPY() must be followed by `va_end()` --- glib/docs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glib/docs.c b/glib/docs.c index 699e73a08..1194a2dcd 100644 --- a/glib/docs.c +++ b/glib/docs.c @@ -1880,6 +1880,9 @@ * In order to use this function, you must include string.h yourself, * because this macro may use memmove() and GLib does not include * string.h for you. + * + * Each invocation of `G_VA_COPY (ap1, ap2)` must be matched with a + * corresponding `va_end (ap1)` call in the same function. */ /**