summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Boles <dboles.src@gmail.com>2019-07-05 10:34:27 +0100
committerDaniel Boles <dboles.src@gmail.com>2019-07-05 10:34:27 +0100
commit71ccfadbe126b87e0c69fd8fbc11a8c9b5a1fb5c (patch)
treec4f93b8cbc8b27e572864510b5deeff25ea9e822
parent8efe050a393e165c28cedb13f1d8e390fbe51601 (diff)
downloadglib-71ccfadbe126b87e0c69fd8fbc11a8c9b5a1fb5c.tar.gz
docs.c: Forward link from g_auto* → G_DEFINE_AUTO*
We said the type must support being cleaned up and will be cleaned up in an appropriate way, but in order to figure out how to do that, you had to jump forward in the documentation to the other macros. Just say them.
-rw-r--r--glib/docs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/glib/docs.c b/glib/docs.c
index 60ca64c3c..89b1d5253 100644
--- a/glib/docs.c
+++ b/glib/docs.c
@@ -2215,6 +2215,8 @@
*
* The variable is cleaned up in a way appropriate to its type when the
* variable goes out of scope. The type must support this.
+ * The way to clean up the type must have been defined using one of the macros
+ * G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC() or G_DEFINE_AUTO_CLEANUP_FREE_FUNC().
*
* This feature is only supported on GCC and clang. This macro is not
* defined on other compilers and should not be used in programs that
@@ -2269,6 +2271,8 @@
*
* The variable is cleaned up in a way appropriate to its type when the
* variable goes out of scope. The type must support this.
+ * The way to clean up the type must have been defined using the macro
+ * G_DEFINE_AUTOPTR_CLEANUP_FUNC().
*
* This feature is only supported on GCC and clang. This macro is not
* defined on other compilers and should not be used in programs that