How handle error messages from g_assert



Hi everyone!

I'm trying to catch error messages issued by g_assert before quitting code. I set up handler:
g_log_set_handler (NULL, G_LOG_LEVEL_ERROR | G_LOG_FLAG_FATAL, (GLogFunc) handler, NULL);

And when using g_error, it works (t.i. message is handled and handler function is called properly). However, when using g_assert it doesn't. How to properly handle messages issued by g_assert?

Thanks for any tips in advance,
Peteris Krisjanis.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]