summaryrefslogtreecommitdiff
path: root/girepository
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>2015-07-15 13:11:45 +0200
committerMathieu Duponchelle <mathieu@centricular.com>2019-07-19 01:21:38 +0200
commit0f3efc9058e2f249e84c02840fd96b6a413a9201 (patch)
treeea4628119b6573901c3426a16a74fced1c9c7822 /girepository
parenta62855702c3bc0b10370ef25d622a32e227283bd (diff)
downloadgobject-introspection-0f3efc9058e2f249e84c02840fd96b6a413a9201.tar.gz
scanner: parse and expose function macros
This is useful for documentation tools, and other utilities that rely on full introspection of the C API of a given library.
Diffstat (limited to 'girepository')
-rw-r--r--girepository/girparser.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/girepository/girparser.c b/girepository/girparser.c
index d545d310..53450baf 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -2845,7 +2845,12 @@ start_element_handler (GMarkupParseContext *context,
break;
case 'f':
- if (start_function (context, element_name,
+ if (strcmp ("function-macro", element_name) == 0)
+ {
+ state_switch (ctx, STATE_PASSTHROUGH);
+ goto out;
+ }
+ else if (start_function (context, element_name,
attribute_names, attribute_values,
ctx, error))
goto out;