# HG changeset patch # User Richard Laager # Date 1177697244 0 # Node ID 2da3e5a69ebcac56f1903a9e0835eab7002a033b # Parent d29c995c815b7f93adc122c3b9e6fae327d8207c 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. diff -r d29c995c815b -r 2da3e5a69ebc finch/finch.c --- 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");