Do not expand autoptr macros when running introspectiona07b57887dee43ca0e3cd33c319eaad8998e03fd
commita07b57887dee43ca0e3cd33c319eaad8998e03fd
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 22 Dec 2017 15:03:07 +0000 (22 15:03 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 22 Dec 2017 15:03:07 +0000 (22 15:03 +0000)
tree7c5908f7b2e7b5cdbcf60e6f028553058c975d83
parentf49a93b20761a0be51b22c481503b4cda0f7264f
Do not expand autoptr macros when running introspection

The introspection scanner chokes fairly badly on the types we create,
and that got even worse when the autolist support landed. Now, every
time we declare a new GObject type we automatically get incomplete
aliases to container types that gobject-introspection and Vala do not
know how to handle.

Since the autoptr machinery is not really introspectable to begin with,
as it's a C utility extension that depends on the C compiler being used
to compile a C project that depends on GLib, we can mark the whole
section as non-introspectable using the __GI_SCANNER__ pre-processor
symbol.

https://bugzilla.gnome.org/show_bug.cgi?id=791342
glib/gmacros.h