gobject-introspection r776 - trunk/tools



Author: walters
Date: Tue Oct 21 18:20:25 2008
New Revision: 776
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=776&view=rev

Log:
Write out throws attribute


Modified:
   trunk/tools/generate.c

Modified: trunk/tools/generate.c
==============================================================================
--- trunk/tools/generate.c	(original)
+++ trunk/tools/generate.c	Tue Oct 21 18:20:25 2008
@@ -478,11 +478,13 @@
   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 @@
   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);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]