mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-24 16:16:52 +02:00
Write out throws attribute
svn path=/trunk/; revision=776
This commit is contained in:
parent
d3e2ead0db
commit
cb720c675e
@ -478,11 +478,13 @@ write_function_info (const gchar *namespace,
|
|||||||
const gchar *name;
|
const gchar *name;
|
||||||
const gchar *symbol;
|
const gchar *symbol;
|
||||||
gboolean deprecated;
|
gboolean deprecated;
|
||||||
|
gboolean throws;
|
||||||
|
|
||||||
flags = g_function_info_get_flags (info);
|
flags = g_function_info_get_flags (info);
|
||||||
name = g_base_info_get_name ((GIBaseInfo *)info);
|
name = g_base_info_get_name ((GIBaseInfo *)info);
|
||||||
symbol = g_function_info_get_symbol (info);
|
symbol = g_function_info_get_symbol (info);
|
||||||
deprecated = g_base_info_is_deprecated ((GIBaseInfo *)info);
|
deprecated = g_base_info_is_deprecated ((GIBaseInfo *)info);
|
||||||
|
throws = flags & GI_FUNCTION_THROWS;
|
||||||
|
|
||||||
if (flags & GI_FUNCTION_IS_CONSTRUCTOR)
|
if (flags & GI_FUNCTION_IS_CONSTRUCTOR)
|
||||||
tag = "constructor";
|
tag = "constructor";
|
||||||
@ -503,6 +505,9 @@ write_function_info (const gchar *namespace,
|
|||||||
if (deprecated)
|
if (deprecated)
|
||||||
xml_printf (file, " deprecated=\"1\"");
|
xml_printf (file, " deprecated=\"1\"");
|
||||||
|
|
||||||
|
if (throws)
|
||||||
|
xml_printf (file, " throws=\"1\"");
|
||||||
|
|
||||||
write_callable_info (namespace, (GICallableInfo*)info, file);
|
write_callable_info (namespace, (GICallableInfo*)info, file);
|
||||||
xml_end_element (file, tag);
|
xml_end_element (file, tag);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user