wn_assert_warn_notreached3
Allows application to commit suicide
Part of wnasrt(3).
Usage
void (*passert_print)(/*string*/);
/*
char
string
[]
;
*/
Overview
wn_assert evaluates condition. If condition is TRUE, execution continues. If condition is FALSE, it prints a message giving the file name and line number where it was called from. Then it crashes the application using abort(3).
wn_assert_notreached prints a message giving the file name and line number where it was called from. Then it crashes the application using abort(3).
wn_assert_warn evaluates condition. If condition is FALSE, it prints a message giving the file name and line number where it was called from.
wn_assert_warn_notreached prints a message giving the file name and line number where it was called from.
wn_set_assert_print allows the programmer to change the routine used for printing messages. The default is to print to standard error.