diff options
author | Colin Walters <walters@src.gnome.org> | 2008-10-21 18:20:25 +0000 |
---|---|---|
committer | Colin Walters <walters@src.gnome.org> | 2008-10-21 18:20:25 +0000 |
commit | 5d4f3feff33f31c05bdbee5caac8cb1b29ec7e18 (patch) | |
tree | d297cf45bb4fac26a191311a55d9aabe7bbe0f2a /tools | |
parent | b99a2dcf08cf3d6839894e374d88b7451aa65d90 (diff) | |
download | gobject-introspection-5d4f3feff33f31c05bdbee5caac8cb1b29ec7e18.tar.gz |
Write out throws attribute
svn path=/trunk/; revision=776
Diffstat (limited to 'tools')
-rw-r--r-- | tools/generate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/generate.c b/tools/generate.c index 7294506f..42ce9e43 100644 --- a/tools/generate.c +++ b/tools/generate.c @@ -478,11 +478,13 @@ write_function_info (const gchar *namespace, const gchar *name; const gchar *symbol; gboolean deprecated; + gboolean throws; flags = g_function_info_get_flags (info); name = g_base_info_get_name ((GIBaseInfo *)info); symbol = g_function_info_get_symbol (info); deprecated = g_base_info_is_deprecated ((GIBaseInfo *)info); + throws = flags & GI_FUNCTION_THROWS; if (flags & GI_FUNCTION_IS_CONSTRUCTOR) tag = "constructor"; @@ -503,6 +505,9 @@ write_function_info (const gchar *namespace, if (deprecated) xml_printf (file, " deprecated=\"1\""); + if (throws) + xml_printf (file, " throws=\"1\""); + write_callable_info (namespace, (GICallableInfo*)info, file); xml_end_element (file, tag); } |