Mercurial > pidgin.yaz
diff finch/finch.c @ 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 | 5e47b3427b28 |
children | ac0d07c7fd90 |
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");