Open martin-ejdestig opened 5 years ago
Could also keep everything in a single header and just have a section of commoh.h.templ wrapped in an #ifdef guard.
Would avoid adding yet another file that user has to specify when invoking generator from build systems. Also a less intrusive change.
As e.g. GLib (and GTK does). Only is supposed to be included and all other headers are guarded by:
commoh.h.templ currently contains TypeWrap and Error if any error annotations are specified in introspection XML. TypeWrap is not meant to be used externally (if I have understood things correctly) while Error is.
Could put *TypeWrap in common_private.h.templ and require FOO_BAR_OR_SOMETHING to be defined before it is included. Error would still stay in commoh.h.templ.