gobject: Add a g_assert_finalize_object() macro

Merged Philip Withnall requested to merge pwithnall/glib:488-assert-gobjects-dont-leak into master

This is a refreshed and slightly tweaked version of @smcv’s macro from #488 (closed) (attached to its precursor Bugzilla bug). I split the commit up, added symbol versioning, and made the symbol a static inline to get proper type checking.

Closes #488 (closed)

Edited by Philip Withnall

Merge request reports