gobject: Add a g_assert_finalize_object() macro
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