summaryrefslogtreecommitdiff
path: root/girepository/girwriter.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-02-03 13:20:00 -0500
committerColin Walters <walters@verbum.org>2012-02-03 13:20:57 -0500
commit39a70b7b108ed1a262de0b9dc3ffca944d9eee0f (patch)
treea3ef3ed0fdd5893f4672aceed9c267193919f534 /girepository/girwriter.c
parent79dcd9cd97b36b92a8f0dd0b94f40055fddbf7d4 (diff)
downloadgobject-introspection-39a70b7b108ed1a262de0b9dc3ffca944d9eee0f.tar.gz
girepository: Add GI_VFUNC_THROWS
Virtual functions can definitely throw an error. Right now the scanner omits the GError parameter for them and adds throws="1", but g-ir-compiler ignores this. https://bugzilla.gnome.org/show_bug.cgi?id=669332
Diffstat (limited to 'girepository/girwriter.c')
-rw-r--r--girepository/girwriter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/girepository/girwriter.c b/girepository/girwriter.c
index d9f916c5..7f5f7e87 100644
--- a/girepository/girwriter.c
+++ b/girepository/girwriter.c
@@ -916,6 +916,9 @@ write_vfunc_info (const gchar *namespace,
else if (flags & GI_VFUNC_MUST_NOT_OVERRIDE)
xml_printf (file, " override=\"never\"");
+ if (flags & GI_VFUNC_THROWS)
+ xml_printf (file, " throws=\"1\"");
+
xml_printf (file, " offset=\"%d\"", offset);
if (invoker)