changeset 16533:2da3e5a69ebc

Add the fatal asserts enabling code to Finch. I'm uneasy about putting this in libpurple, because then a fatal-asserts-enabled libpurple would kill any UI that had a glib debug error, which might not even be in libpurple. I'm not sure we want that, though it may not matter since this is for debugging only.
author Richard Laager <rlaager@wiktel.com>
date Fri, 27 Apr 2007 18:07:24 +0000
parents d29c995c815b
children 32188b6d2db8
files finch/finch.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/finch/finch.c	Fri Apr 27 18:03:38 2007 +0000
+++ b/finch/finch.c	Fri Apr 27 18:07:24 2007 +0000
@@ -202,6 +202,11 @@
 		{0, 0, 0, 0}
 	};
 
+#ifdef PURPLE_FATAL_ASSERTS
+	/* Make g_return_... functions fatal. */
+	g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL);
+#endif
+
 #ifdef ENABLE_NLS
 	bindtextdomain(PACKAGE, LOCALEDIR);
 	bind_textdomain_codeset(PACKAGE, "UTF-8");