Skip to content

Add G_DEFINE macros for enum and flags types

Emmanuele Bassi requested to merge ebassi/enum-type-macros into main

While you might want to use automated tools like glib-mkenums to generate enumeration types for your library, it's often not entirely necessary to complicate your build system in order to handle a couple of enumerations with few values.

Just like we have G_DEFINE macros for object, interface, pointer, and boxed types, we should provide macros for defining enum and flags types.

Edited by Emmanuele Bassi

Merge request reports