gjs r34 - trunk/gi
- From: jobi svn gnome org
- To: svn-commits-list gnome org
- Subject: gjs r34 - trunk/gi
- Date: Tue, 21 Oct 2008 13:11:36 +0000 (UTC)
Author: jobi
Date: Tue Oct 21 13:11:36 2008
New Revision: 34
URL: http://svn.gnome.org/viewvc/gjs?rev=34&view=rev
Log:
* gi/arg.c: Throw an exception for invalid
enumeration values passed as argument or return value.
Modified:
trunk/gi/arg.c
Modified: trunk/gi/arg.c
==============================================================================
--- trunk/gi/arg.c (original)
+++ trunk/gi/arg.c Tue Oct 21 13:11:36 2008
@@ -90,6 +90,12 @@
}
}
+ if (!found) {
+ gjs_throw(context,
+ "%d is not a valid value for enumeration %s",
+ value, g_base_info_get_name((GIBaseInfo *)enum_info));
+ }
+
return found;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]