mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 10:42:11 +01:00
Add check to make sure we're not hitting out unresolved types
svn path=/trunk/; revision=616
This commit is contained in:
parent
95b9645166
commit
4ae9d0f2fa
@ -33,6 +33,16 @@
|
|||||||
static gchar *output = NULL;
|
static gchar *output = NULL;
|
||||||
gchar **includedirs = 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
|
static void
|
||||||
write_type_name (const gchar *namespace,
|
write_type_name (const gchar *namespace,
|
||||||
GIBaseInfo *info,
|
GIBaseInfo *info,
|
||||||
@ -77,6 +87,8 @@ write_type_info (const gchar *namespace,
|
|||||||
"filename"
|
"filename"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
check_unresolved ((GIBaseInfo*)info);
|
||||||
|
|
||||||
tag = g_type_info_get_tag (info);
|
tag = g_type_info_get_tag (info);
|
||||||
is_pointer = g_type_info_is_pointer (info);
|
is_pointer = g_type_info_is_pointer (info);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user