Skip to content

gtype: Define G_DECLARE_BOXED_TYPE macro

Logan Rathbone requested to merge LARathbone/glib:boxed-type-macro into main

This is for consistency with the other G_DECLARE_*_TYPE macros.

Developers that have never programmed with GObject since 2.44 may be confused about how to actually write a GType declaration.

This macro may not buy as much as the G_DECLARE_*_TYPE macros, but promotes code readability and brings creating boxed types more in line with creating other GTypes in GObject-oriented header files.

Merge request reports