#include <stdio.h>
Go to the source code of this file.
|
enum | omError_e {
omError_NoError = 0
, omError_Unknown
, omError_InternalBug
, omError_MemoryCorrupted
,
omError_NullAddr
, omError_InvalidRangeAddr
, omError_FalseAddr
, omError_FalseAddrOrMemoryCorrupted
,
omError_WrongSize
, omError_FreedAddr
, omError_FreedAddrOrMemoryCorrupted
, omError_WrongBin
,
omError_UnknownBin
, omError_NotBinAddr
, omError_UnalignedAddr
, omError_NullSizeAlloc
,
omError_ListCycleError
, omError_SortedListError
, omError_KeptAddrListCorrupted
, omError_FreePattern
,
omError_BackPattern
, omError_FrontPattern
, omError_NotString
, omError_StickyBin
,
omError_MaxError
, omError_NoError = 0
, omError_Unknown
, omError_InternalBug
,
omError_MemoryCorrupted
, omError_NullAddr
, omError_InvalidRangeAddr
, omError_FalseAddr
,
omError_FalseAddrOrMemoryCorrupted
, omError_WrongSize
, omError_FreedAddr
, omError_FreedAddrOrMemoryCorrupted
,
omError_WrongBin
, omError_UnknownBin
, omError_NotBinAddr
, omError_UnalignedAddr
,
omError_NullSizeAlloc
, omError_ListCycleError
, omError_SortedListError
, omError_KeptAddrListCorrupted
,
omError_FreePattern
, omError_BackPattern
, omError_FrontPattern
, omError_NotString
,
omError_StickyBin
, omError_MaxError
} |
|
◆ omAssume
Value:do \
{ \
{ \
} \
} \
while (0)
Definition at line 85 of file omError.h.
◆ omError_t
◆ omError_e
Enumerator |
---|
omError_NoError | |
omError_Unknown | |
omError_InternalBug | |
omError_MemoryCorrupted | |
omError_NullAddr | |
omError_InvalidRangeAddr | |
omError_FalseAddr | |
omError_FalseAddrOrMemoryCorrupted | |
omError_WrongSize | |
omError_FreedAddr | |
omError_FreedAddrOrMemoryCorrupted | |
omError_WrongBin | |
omError_UnknownBin | |
omError_NotBinAddr | |
omError_UnalignedAddr | |
omError_NullSizeAlloc | |
omError_ListCycleError | |
omError_SortedListError | |
omError_KeptAddrListCorrupted | |
omError_FreePattern | |
omError_BackPattern | |
omError_FrontPattern | |
omError_NotString | |
omError_StickyBin | |
omError_MaxError | |
omError_NoError | |
omError_Unknown | |
omError_InternalBug | |
omError_MemoryCorrupted | |
omError_NullAddr | |
omError_InvalidRangeAddr | |
omError_FalseAddr | |
omError_FalseAddrOrMemoryCorrupted | |
omError_WrongSize | |
omError_FreedAddr | |
omError_FreedAddrOrMemoryCorrupted | |
omError_WrongBin | |
omError_UnknownBin | |
omError_NotBinAddr | |
omError_UnalignedAddr | |
omError_NullSizeAlloc | |
omError_ListCycleError | |
omError_SortedListError | |
omError_KeptAddrListCorrupted | |
omError_FreePattern | |
omError_BackPattern | |
omError_FrontPattern | |
omError_NotString | |
omError_StickyBin | |
omError_MaxError | |
Definition at line 16 of file omError.h.
17{
43};
@ omError_MemoryCorrupted
@ omError_FreedAddrOrMemoryCorrupted
@ omError_SortedListError
@ omError_KeptAddrListCorrupted
@ omError_InvalidRangeAddr
@ omError_FalseAddrOrMemoryCorrupted
◆ omError2Serror()
Definition at line 65 of file omError.c.
66{
69 {
72 }
73 return "omError_UnKnown";
74}
static const struct omErrorString_s om_ErrorStrings[]
◆ omError2String()
Definition at line 54 of file omError.c.
55{
58 {
61 }
62 return "undocumented error";
63}
◆ omErrorBreak()
void omErrorBreak |
( |
void |
| ) |
|
◆ omPrintAddrInfo()
void omPrintAddrInfo |
( |
FILE * |
fd, |
|
|
void * |
addr, |
|
|
const char * |
s |
|
) |
| |
Definition at line 453 of file omDebugCheck.c.
454{
456}
const CanonicalForm int s
static void _omPrintAddrInfo(FILE *fd, omError_t error, void *addr, void *bin_size, omTrackFlags_t flags, int max_frames, const char *s)
◆ omReportError()
Definition at line 80 of file omError.c.
82{
83 int max_check, max_track;
84
86
87
92
95
97 {
98
101
102#ifdef OM_INTERNAL_DEBUG
105#endif
106
107 if (
om_Opts.HowToReportErrors > 2 && fmt !=
NULL && *fmt !=
'\0')
108 {
111 fputs( ": ",stderr);
112 vfprintf(stderr, fmt,
ap);
114 }
115
116 if (
om_Opts.HowToReportErrors > 1)
117 {
118#ifndef OM_NDEBUG
119 fputs("\n occurred at: ",stderr);
121 fputs(" ??",stderr);
122#endif
123 }
124 fputc('\n',stderr);
125 fflush(stderr);
126 }
129
133}
const char * omError2String(omError_t error)
const char * omError2Serror(omError_t error)
omError_t om_InternalErrorStatus
int _omPrintCurrentBackTrace(FILE *fd, OM_FLR_DECL)
◆ om_CallErrorHook
◆ om_ErrorStatus
◆ om_InternalErrorStatus