constants that reference `define`s are incorrectly computed
This source produces the following output:
<constant name="PIPEWIRE_OBJECT_FEATURES_ALL"
value="992"
c:type="WP_PIPEWIRE_OBJECT_FEATURES_ALL">
<source-position filename="../lib/wp/proxy.h" line="49"/>
<type name="gint" c:type="gint"/>
</constant>
<constant name="PIPEWIRE_OBJECT_FEATURES_MINIMAL"
value="17"
c:type="WP_PIPEWIRE_OBJECT_FEATURES_MINIMAL">
<source-position filename="../lib/wp/proxy.h" line="42"/>
<type name="gint" c:type="gint"/>
</constant>
but the value should be 992|17
(1009
). The constant defined directly before it seems to be ignored.
Here's another problematic define, though the value comes from an external header this time:
<constant name="LOG_LEVEL_TRACE" value="1" c:type="WP_LOG_LEVEL_TRACE">
<source-position filename="../lib/wp/log.h" line="17"/>
<type name="gint" c:type="gint"/>
</constant>
This one should be 1<<8
.
(gobject-introspection 1.70.0)