chiark / gitweb /
basic/log: add an assert that does not recurse into logging functions
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 23 Feb 2018 12:29:03 +0000 (13:29 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:59:05 +0000 (07:59 +0200)
commit47271fd56eadbc451e3ef8b2692dcc8bd2d5d8c7
treef09fafbf30e57d4335c62c621d749ddba792605b
parenta7956ba5bf0dd2b9bd68111d1dc61ac77e6a9e38
basic/log: add an assert that does not recurse into logging functions

Then it can be used in the asserts in logging functions without causing
infinite recursion. The error is just printed to stderr, it should be
good enough for the common case.
src/basic/log.c