[glib/wip/xclaesse/doc-part1: 11/12] Doc: Fix missing g_steal_pointer()
- From: Xavier Claessens <xclaesse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/xclaesse/doc-part1: 11/12] Doc: Fix missing g_steal_pointer()
- Date: Wed, 11 Feb 2015 16:46:13 +0000 (UTC)
commit bb7521fd57b4009b995e1e6c6f19e53a5fc49981
Author: Xavier Claessens <xavier claessens collabora com>
Date: Fri Feb 6 11:52:37 2015 -0500
Doc: Fix missing g_steal_pointer()
docs/reference/glib/glib-sections.txt | 1 +
glib/gmem.h | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/glib/glib-sections.txt b/docs/reference/glib/glib-sections.txt
index 45827d6..7e3b6bd 100644
--- a/docs/reference/glib/glib-sections.txt
+++ b/docs/reference/glib/glib-sections.txt
@@ -996,6 +996,7 @@ g_try_realloc_n
<SUBSECTION>
g_free
g_clear_pointer
+g_steal_pointer
g_mem_gc_friendly
<SUBSECTION>
diff --git a/glib/gmem.h b/glib/gmem.h
index b286047..fccbaf0 100644
--- a/glib/gmem.h
+++ b/glib/gmem.h
@@ -183,6 +183,7 @@ gpointer g_try_realloc_n (gpointer mem,
static inline gpointer
(g_steal_pointer) (gpointer pp)
{
+#ifndef __GTK_DOC_IGNORE__
gpointer *ptr = (gpointer *) pp;
gpointer ref;
@@ -190,6 +191,7 @@ static inline gpointer
*ptr = NULL;
return ref;
+#endif
}
/* type safety */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]