[glib: 1/2] Docs: Mention that G_VA_COPY() must be followed by `va_end()`




commit 31f793b71a6259b6673172e803f863442cb66ebd
Author: Avinash Sonawane <rootkea gmail com>
Date:   Mon Aug 16 20:05:59 2021 +0000

    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.
  */
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]