From cb720c675e1590e34744a6e8c6d435681e49e9c0 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 21 Oct 2008 18:20:25 +0000 Subject: [PATCH] Write out throws attribute svn path=/trunk/; revision=776 --- girepository/tools/generate.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/girepository/tools/generate.c b/girepository/tools/generate.c index 7294506f3..42ce9e435 100644 --- a/girepository/tools/generate.c +++ b/girepository/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); }