[perl-Glib-Object-Introspection] Croak on GITypeTag size for pointer types
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Glib-Object-Introspection] Croak on GITypeTag size for pointer types
- Date: Sun, 27 Feb 2011 11:04:17 +0000 (UTC)
commit 06d99dd9e0f7e5585823118bfdd0a66fb0594d3a
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Sun Feb 27 01:05:32 2011 +0000
Croak on GITypeTag size for pointer types
GObjectIntrospection.xs | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/GObjectIntrospection.xs b/GObjectIntrospection.xs
index f46ce9f..201bc3b 100644
--- a/GObjectIntrospection.xs
+++ b/GObjectIntrospection.xs
@@ -302,7 +302,9 @@ size_of_type_tag (GITypeTag type_tag)
case GI_TYPE_TAG_GSLIST:
case GI_TYPE_TAG_GHASH:
case GI_TYPE_TAG_ERROR:
- g_assert_not_reached ();
+ ccroak ("Unable to determine the size of '%s'",
+ g_type_tag_to_string (type_tag));
+ break;
}
return 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]