gobject-introspection r616 - trunk/tools
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r616 - trunk/tools
- Date: Fri, 19 Sep 2008 16:16:18 +0000 (UTC)
Author: walters
Date: Fri Sep 19 16:16:18 2008
New Revision: 616
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=616&view=rev
Log:
Add check to make sure we're not hitting out unresolved types
Modified:
trunk/tools/generate.c
Modified: trunk/tools/generate.c
==============================================================================
--- trunk/tools/generate.c (original)
+++ trunk/tools/generate.c Fri Sep 19 16:16:18 2008
@@ -34,6 +34,16 @@
gchar **includedirs = NULL;
static void
+check_unresolved (GIBaseInfo *info)
+{
+ if (g_base_info_get_type (info) != GI_INFO_TYPE_UNRESOLVED)
+ return;
+
+ g_critical ("Found unresolved type '%s' '%s'\n",
+ g_base_info_get_name (info), g_base_info_get_namespace (info));
+}
+
+static void
write_type_name (const gchar *namespace,
GIBaseInfo *info,
FILE *file)
@@ -77,6 +87,8 @@
"filename"
};
+ check_unresolved ((GIBaseInfo*)info);
+
tag = g_type_info_get_tag (info);
is_pointer = g_type_info_is_pointer (info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]