NAME
set_bug - Initiates bug handling
SYNOPSIS
#include "l/l_sys_err.h"
Example compile flags (system dependent):
-DLINUX_386 -DLINUX_386_P4
-I/home/kobus/include
-L/home/kobus/load/linux_386_p4 -L/usr/local/lib -L/usr/lib
-lKJB -llapack -lblas -lg2c -lXext -lX11
void set_bug
(
const char *format_str,
...
);
DESCRIPTION
This routine works somewhat like set_error. There is no add_bug, etc.
It is used when the "error" is likely to be a programmer error. Its action
depends on the setting of the bug handler (see set_bug_handler). If the bug
handler is set, then that routine is callded with the message formed from
the format string and arguments. By default, the bug handler is set to
default_bug_handler. (See default_bug_handler for details.
MACROS
SET_BUFFER_OVERFLOW_BUG(), SET_FORMAT_STRING_BUG(),
SET_ARGUMENT_BUG(), SET_CANT_HAPPEN_BUG()
These paramterless macros provide the format string for set_error.
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTOR
Kobus Barnard
SEE ALSO
push_error_action
,
pop_error_action
,
set_error_action
,
get_error_action
,
set_bug_handler
,
default_bug_handler
,
kjb_print_error
,
kjb_get_error
,
kjb_clear_error
,
set_error
,
add_error
,
cat_error
,
insert_error
,
str_set_error
,
str_add_error
,
str_cat_error
,
str_insert_error