[glib/wip/gcleanup: 57/79] gobject: Define a cleanup scope for libgobject
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gcleanup: 57/79] gobject: Define a cleanup scope for libgobject
- Date: Sun, 10 Nov 2013 15:24:19 +0000 (UTC)
commit 5d568eb71652fc37c8eb735c05cc711a14475d74
Author: Stef Walter <stefw gnome org>
Date: Sun Nov 10 14:50:45 2013 +0100
gobject: Define a cleanup scope for libgobject
https://bugzilla.gnome.org/show_bug.cgi?id=711778
gobject/Makefile.am | 1 +
gobject/gobject.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gobject/Makefile.am b/gobject/Makefile.am
index 1509616..c27652f 100644
--- a/gobject/Makefile.am
+++ b/gobject/Makefile.am
@@ -8,6 +8,7 @@ SUBDIRS = . tests
AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"GLib-GObject\" \
+ -DG_CLEANUP_SCOPE=gobject_cleanup \
$(glib_INCLUDES) \
$(GLIB_DEBUG_FLAGS) \
-DGOBJECT_COMPILATION
diff --git a/gobject/gobject.c b/gobject/gobject.c
index 899fe01..92023ae 100644
--- a/gobject/gobject.c
+++ b/gobject/gobject.c
@@ -100,6 +100,7 @@
* ]|
*/
+G_CLEANUP_DEFINE;
/* --- macros --- */
#define PARAM_SPEC_PARAM_ID(pspec) ((pspec)->param_id)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]