Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
opt_diags.h
Go to the documentation of this file.
1
29#ifndef RW_OPT_DIAGS_H_INCLUDED
30#define RW_OPT_DIAGS_H_INCLUDED
31
32
33#include <rw_testdefs.h>
34
35
36enum diag_t {
37 diag_trace = 0, // trace statements of inactive diagnostics
38 diag_info = 1, // informational messages (e.g., indicating progress)
39 diag_note = 2, // noteworthy events
40 diag_expect = 3, // unexpected diagnostic inactive
41 diag_xwarn = 4, // expected warning
42 diag_warn = 5, // warning
43 diag_xassert = 6, // expected assertion failure
44 diag_assert = 7, // assertion failure
45 diag_error = 8, // test logic errors (do not terminate the test)
46 diag_fatal = 9, // fatal errors (the first will terminate the test)
47
49};
50
51
53{
54 char esc_pfx [40]; // escape prefix
55 char esc_sfx [40]; // escape suffix
56 char code [16]; // short code
57 char desc [80]; // verbose description
58};
59
60
61extern esc_text_t
63
64
65int
66_rw_setopt_diags (int argc, char *argv[]);
67
68
69#endif // RW_OPT_DIAGS_H_INCLUDED
esc_text_t diag_msgs[N_DIAG_TYPES]
Definition opt_diags.cpp:74
int _rw_setopt_diags(int argc, char *argv[])
diag_t
Definition opt_diags.h:36
@ diag_info
Definition opt_diags.h:38
@ diag_xassert
Definition opt_diags.h:43
@ diag_expect
Definition opt_diags.h:40
@ diag_xwarn
Definition opt_diags.h:41
@ diag_assert
Definition opt_diags.h:44
@ diag_warn
Definition opt_diags.h:42
@ diag_error
Definition opt_diags.h:45
@ diag_note
Definition opt_diags.h:39
@ diag_fatal
Definition opt_diags.h:46
@ N_DIAG_TYPES
Definition opt_diags.h:48
@ diag_trace
Definition opt_diags.h:37
char esc_pfx[40]
Definition opt_diags.h:54
char desc[80]
Definition opt_diags.h:57
char esc_sfx[40]
Definition opt_diags.h:55
char code[16]
Definition opt_diags.h:56