mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Install config.py, better error handling if we forget --raw
svn path=/trunk/; revision=461
This commit is contained in:
parent
cf73901c6b
commit
a91b3dba67
@ -1127,6 +1127,13 @@ load_typelib (const gchar *filename,
|
||||
GModule *handle;
|
||||
|
||||
handle = g_module_open (filename, G_MODULE_BIND_LOCAL|G_MODULE_BIND_LAZY);
|
||||
if (handle == NULL)
|
||||
{
|
||||
g_printerr ("Could not load typelib from '%s': %s\n",
|
||||
filename, g_module_error ());
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!g_module_symbol (handle, "_G_TYPELIB", (gpointer *) &typelib))
|
||||
{
|
||||
g_printerr ("Could not load typelib from '%s': %s\n",
|
||||
|
Loading…
Reference in New Issue
Block a user