seed r195 - trunk/libseed
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r195 - trunk/libseed
- Date: Sat, 8 Nov 2008 04:18:52 +0000 (UTC)
Author: racarr
Date: Sat Nov 8 04:18:52 2008
New Revision: 195
URL: http://svn.gnome.org/viewvc/seed?rev=195&view=rev
Log:
Remove the last of the assertions, everything throws exceptions now.
Modified:
trunk/libseed/seed-signals.c
Modified: trunk/libseed/seed-signals.c
==============================================================================
--- trunk/libseed/seed-signals.c (original)
+++ trunk/libseed/seed-signals.c Sat Nov 8 04:18:52 2008
@@ -151,7 +151,16 @@
g_error("Signal constructed with invalid parameters"
"in namespace import \n");
- g_assert((argumentCount <= 3));
+ if ((argumentCount > 3) || (argumentCount == 0))
+ {
+ gchar * mes = g_strdup_printf("Signal connection expected"
+ " 1, 2, or 3 arguments. Got "
+ "%d", argumentCount);
+ seed_make_exception(exception, "ArgumentError", mes);
+
+ g_free(mes);
+ return JSValueMakeNull(eng->context);
+ }
closure = g_closure_new_simple(sizeof(SeedClosure), 0);
g_closure_set_marshal(closure, seed_signal_marshal_func);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]