On Wed, Nov 12, 2014 at 3:00 PM, Alexander E. Patrakov <patrakov at gmail.com> wrote: > 12.11.2014 16:57, Andrey Semashev wrote: >> >> It's a common approach for injecting a message into the assertion >> failure. The C runtime typically displays the condition that fails, >> and in this case it will include the message. It helps debugging. > > > We have pa_assert_not_reached just for that. It doesn't have a way to inject > a custom message, but it does log a file and a line. Ok, I will use it then.