comparison 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
comparison
equal deleted inserted replaced
16532:d29c995c815b 16533:2da3e5a69ebc
200 {"session", required_argument, NULL, 's'}, 200 {"session", required_argument, NULL, 's'},
201 {"version", no_argument, NULL, 'v'}, 201 {"version", no_argument, NULL, 'v'},
202 {0, 0, 0, 0} 202 {0, 0, 0, 0}
203 }; 203 };
204 204
205 #ifdef PURPLE_FATAL_ASSERTS
206 /* Make g_return_... functions fatal. */
207 g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL);
208 #endif
209
205 #ifdef ENABLE_NLS 210 #ifdef ENABLE_NLS
206 bindtextdomain(PACKAGE, LOCALEDIR); 211 bindtextdomain(PACKAGE, LOCALEDIR);
207 bind_textdomain_codeset(PACKAGE, "UTF-8"); 212 bind_textdomain_codeset(PACKAGE, "UTF-8");
208 textdomain(PACKAGE); 213 textdomain(PACKAGE);
209 #endif 214 #endif