]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libvaladoc/girimporter: Skip "function-macro" elements
authorCorentin Noël <corentin.noel@collabora.com>
Fri, 27 Mar 2020 12:32:58 +0000 (13:32 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 22 Jun 2020 08:23:16 +0000 (10:23 +0200)
This is the same patch as in commit f51d9dfdaf97ab5b8377d7e5bb78cfc9b232dc86

libvaladoc/importer/girdocumentationimporter.vala

index e59fb51532dbf9882db9d5519f083f1ea88beb0b..93c1bc3f043b1e73f86ecac95b40228aefb99a5e 100644 (file)
@@ -273,6 +273,8 @@ public class Valadoc.Importer.GirDocumentationImporter : DocumentationImporter {
                                parse_bitfield ();
                        } else if (reader.name == "function") {
                                parse_method ("function");
+                       } else if (reader.name == "function-macro") {
+                               skip_element ();
                        } else if (reader.name == "callback") {
                                parse_callback ();
                        } else if (reader.name == "record") {