mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-03 04:09:20 +02:00
Add a new type GCleanupScope that stores a list of things to "clean up" when g_cleanup_clean() is called. More importantly, define some macros (G_CLEANUP, etc) that facilitate conditionally building a per-library/executable cleanup list if G_DEBUG=cleanup is specified. The cleanup list is run at destructor time. -DG_CLEANUP_SCOPE defines the name of the cleanup list and enables the feature for a given module. Concept and initial work: Ryan Lortie <desrt@desrt.ca> https://bugzilla.gnome.org/show_bug.cgi?id=627423