summaryrefslogtreecommitdiff
path: root/tools/generate.c
diff options
context:
space:
mode:
authorColin Walters <walters@src.gnome.org>2008-09-19 16:16:18 +0000
committerColin Walters <walters@src.gnome.org>2008-09-19 16:16:18 +0000
commit853c489890a0ebe5f025cf80e4340015285c82bf (patch)
tree619322fe87d71d075ee51d04bc7ae5bf3273afad /tools/generate.c
parent6cb6c29d75e5c41cb4884d538bdedcdaf9d7fb21 (diff)
downloadgobject-introspection-853c489890a0ebe5f025cf80e4340015285c82bf.tar.gz
Add check to make sure we're not hitting out unresolved types
svn path=/trunk/; revision=616
Diffstat (limited to 'tools/generate.c')
-rw-r--r--tools/generate.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/generate.c b/tools/generate.c
index c63acdcc..01f47767 100644
--- a/tools/generate.c
+++ b/tools/generate.c
@@ -34,6 +34,16 @@ static gchar *output = NULL;
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 @@ write_type_info (const gchar *namespace,
"filename"
};
+ check_unresolved ((GIBaseInfo*)info);
+
tag = g_type_info_get_tag (info);
is_pointer = g_type_info_is_pointer (info);