Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
axodebug.h File Reference
#include <assert.h>
Include dependency graph for axodebug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ASSERT(exp)
#define ERRORMSG(msg)
#define ERRORMSG1(msg, a)
#define ERRORMSG2(msg, a, b)
#define ERRORMSG3(msg, a, b, c)
#define ERRORMSG4(msg, a, b, c, d)
#define ERRORMSG5(msg, a, b, c, d, e)
#define HWNDASSERT(hWnd)
#define IsBadPtr(p)
#define IsBadArray(p, n)
#define RPTRASSERT(p)
#define FNPTRASSERT(p)
#define LPSZASSERT(p)
#define WPTRASSERT(p)
#define MEMBERASSERT()
#define ARRAYASSERT(p, n)
#define RARRAYASSERT(p, n)
#define WARRAYASSERT(p, n)
#define VERIFY(exp)
#define DEBUG_ONLY(exp)
#define TRACE(s)
#define DLLTRACE(s)
#define TRACE1(s, a)
#define TRACE2(s, a, b)
#define TRACE3(s, a, b, c)
#define TRACE4(s, a, b, c, d)
#define TRACE5(s, a, b, c, d, e)
#define TRACE_INT(e)
#define TRACE_FLOAT(e)
#define TRACE_STRING(e)
#define SHOW_SYSTEM_ERROR(dwError)
#define VERIFY_SYSTEM_CALL(exp)
#define ASSERT_ISALIGNED(p)
#define ASSERT_NOTONSTACK(p)
#define SET_CRT_DEBUG_FIELD(a)
#define CLEAR_CRT_DEBUG_FIELD(a)
#define HEAPASSERT()
#define AXODBG_REPORT_FLAG   0x80000000
#define AXODBG_BREAK_ON_ASSERT   0x00000001
#define AXODBG_SET_DEBUG_FIELD(a)
#define AXODBG_CLEAR_DEBUG_FIELD(a)
#define AXODBG_DEBUGBREAK()

Functions

void AXODBG_Initialize (void)
BOOL AXODBG_DebugBreak (void)
int cdecl AXODBG_printf (char *lpsz,...)
void AXODBG_SetTracePrefix (char const *szNewTracePrefix)
void AXODBG_SetTracePrefixFromModuleHandle (HMODULE mod_handle)
int AXODBG_ShowSystemError (DWORD dwSystemError)
UINT AXODBG_GetSystemErrorText (DWORD dwSystemError, LPSTR pszBuf, UINT uMaxLen)
BOOL AXODBG_IsAligned (void *pv, UINT uDataSize)
BOOL AXODBG_NotOnStack (void *pv)
void AXODBG_assert (LPCSTR psExp, LPCSTR psFile, int nLine)
void AXODBG_ErrorMsg (LPCSTR psFile, int nLine, LPCSTR pszFormat,...)
void AXODBG_SystemErrorMsg (DWORD dwSystemError, LPCSTR psFile, int nLine)
DWORD AXODBG_SetDebugFlag (DWORD dwFlags)

Macro Definition Documentation

◆ ARRAYASSERT

#define ARRAYASSERT ( p,
n )
Value:
WORD TpMarker int n
Definition Son.h:353
#define ASSERT(exp)
Definition axodebug.h:95
#define IsBadArray(p, n)
Definition axodebug.h:127

Definition at line 141 of file axodebug.h.

◆ ASSERT

◆ ASSERT_ISALIGNED

#define ASSERT_ISALIGNED ( p)
Value:
((void)0)

Definition at line 237 of file axodebug.h.

◆ ASSERT_NOTONSTACK

#define ASSERT_NOTONSTACK ( p)
Value:
((void)0)

Definition at line 238 of file axodebug.h.

Referenced by CArrayPtr< ITEM >::CArrayPtr().

◆ AXODBG_BREAK_ON_ASSERT

#define AXODBG_BREAK_ON_ASSERT   0x00000001

Definition at line 287 of file axodebug.h.

◆ AXODBG_CLEAR_DEBUG_FIELD

#define AXODBG_CLEAR_DEBUG_FIELD ( a)
Value:
((void)0)

Definition at line 299 of file axodebug.h.

◆ AXODBG_DEBUGBREAK

#define AXODBG_DEBUGBREAK ( )
Value:
int BOOL
Definition unix.h:49
#define FALSE
Definition unix.h:172

Definition at line 307 of file axodebug.h.

◆ AXODBG_REPORT_FLAG

#define AXODBG_REPORT_FLAG   0x80000000

Definition at line 286 of file axodebug.h.

◆ AXODBG_SET_DEBUG_FIELD

#define AXODBG_SET_DEBUG_FIELD ( a)
Value:
((void)0)

Definition at line 298 of file axodebug.h.

◆ CLEAR_CRT_DEBUG_FIELD

#define CLEAR_CRT_DEBUG_FIELD ( a)
Value:
((void)0)

Definition at line 270 of file axodebug.h.

◆ DEBUG_ONLY

#define DEBUG_ONLY ( exp)
Value:
((void)0)

Definition at line 181 of file axodebug.h.

◆ DLLTRACE

#define DLLTRACE ( s)
Value:
((void)0)

Definition at line 199 of file axodebug.h.

◆ ERRORMSG

#define ERRORMSG ( msg)
Value:
((void)0)

Definition at line 115 of file axodebug.h.

◆ ERRORMSG1

#define ERRORMSG1 ( msg,
a )
Value:
((void)0)

Definition at line 116 of file axodebug.h.

◆ ERRORMSG2

#define ERRORMSG2 ( msg,
a,
b )
Value:
((void)0)

Definition at line 117 of file axodebug.h.

◆ ERRORMSG3

#define ERRORMSG3 ( msg,
a,
b,
c )
Value:
((void)0)

Definition at line 118 of file axodebug.h.

◆ ERRORMSG4

#define ERRORMSG4 ( msg,
a,
b,
c,
d )
Value:
((void)0)

Definition at line 119 of file axodebug.h.

◆ ERRORMSG5

#define ERRORMSG5 ( msg,
a,
b,
c,
d,
e )
Value:
((void)0)

Definition at line 120 of file axodebug.h.

◆ FNPTRASSERT

#define FNPTRASSERT ( p)
Value:
ASSERT(!IsBadCodePtr((FARPROC)(p)))

Definition at line 129 of file axodebug.h.

◆ HEAPASSERT

#define HEAPASSERT ( )
Value:
((void)0)

Definition at line 280 of file axodebug.h.

◆ HWNDASSERT

#define HWNDASSERT ( hWnd)
Value:
ASSERT(IsWindow(hWnd))

Definition at line 125 of file axodebug.h.

◆ IsBadArray

#define IsBadArray ( p,
n )
Value:
IsBadWritePtr((void *)(p), sizeof(*(p))*(n))

Definition at line 127 of file axodebug.h.

◆ IsBadPtr

#define IsBadPtr ( p)
Value:
IsBadWritePtr((void *)(p), sizeof(*(p)))

Definition at line 126 of file axodebug.h.

◆ LPSZASSERT

#define LPSZASSERT ( p)
Value:
ASSERT(!IsBadStringPtr(p, (UINT)(-1)))
unsigned int UINT
Definition unix.h:47

Definition at line 130 of file axodebug.h.

◆ MEMBERASSERT

#define MEMBERASSERT ( )
Value:
#define WPTRASSERT(p)
Definition axodebug.h:139

Definition at line 140 of file axodebug.h.

◆ RARRAYASSERT

#define RARRAYASSERT ( p,
n )
Value:
ASSERT( ((p) != NULL) && !IsBadReadPtr( (const void *)(p), sizeof(*(p))*(n) ) )

Definition at line 156 of file axodebug.h.

◆ RPTRASSERT

#define RPTRASSERT ( p)
Value:
ASSERT(!IsBadReadPtr((const void *)(p), sizeof(*(p))))

Definition at line 128 of file axodebug.h.

◆ SET_CRT_DEBUG_FIELD

#define SET_CRT_DEBUG_FIELD ( a)
Value:
((void)0)

Definition at line 269 of file axodebug.h.

◆ SHOW_SYSTEM_ERROR

#define SHOW_SYSTEM_ERROR ( dwError)
Value:
((void)0)

Definition at line 218 of file axodebug.h.

◆ TRACE

#define TRACE ( s)
Value:
((void)0)

Definition at line 198 of file axodebug.h.

◆ TRACE1

#define TRACE1 ( s,
a )
Value:
((void)0)

Definition at line 200 of file axodebug.h.

◆ TRACE2

#define TRACE2 ( s,
a,
b )
Value:
((void)0)

Definition at line 201 of file axodebug.h.

◆ TRACE3

#define TRACE3 ( s,
a,
b,
c )
Value:
((void)0)

Definition at line 202 of file axodebug.h.

◆ TRACE4

#define TRACE4 ( s,
a,
b,
c,
d )
Value:
((void)0)

Definition at line 203 of file axodebug.h.

◆ TRACE5

#define TRACE5 ( s,
a,
b,
c,
d,
e )
Value:
((void)0)

Definition at line 204 of file axodebug.h.

◆ TRACE_FLOAT

#define TRACE_FLOAT ( e)
Value:
TRACE1(#e "=%g\n", e)
#define TRACE1(s, a)
Definition axodebug.h:200

Definition at line 209 of file axodebug.h.

◆ TRACE_INT

#define TRACE_INT ( e)
Value:
TRACE1(#e "=%d\n", e)

Definition at line 208 of file axodebug.h.

◆ TRACE_STRING

#define TRACE_STRING ( e)
Value:
TRACE1(#e "=%s\n", e)

Definition at line 210 of file axodebug.h.

◆ VERIFY

#define VERIFY ( exp)
Value:
(exp)

Definition at line 171 of file axodebug.h.

◆ VERIFY_SYSTEM_CALL

#define VERIFY_SYSTEM_CALL ( exp)
Value:
(exp)

Definition at line 227 of file axodebug.h.

◆ WARRAYASSERT

#define WARRAYASSERT ( p,
n )
Value:
ASSERT( ((p) != NULL) && !IsBadWritePtr( (void *)(p), sizeof(*(p))*(n) ) )

Definition at line 157 of file axodebug.h.

◆ WPTRASSERT

#define WPTRASSERT ( p)
Value:
#define IsBadPtr(p)
Definition axodebug.h:126

Definition at line 139 of file axodebug.h.

Function Documentation

◆ AXODBG_assert()

void AXODBG_assert ( LPCSTR psExp,
LPCSTR psFile,
int nLine )

◆ AXODBG_DebugBreak()

BOOL AXODBG_DebugBreak ( void )

◆ AXODBG_ErrorMsg()

void AXODBG_ErrorMsg ( LPCSTR psFile,
int nLine,
LPCSTR pszFormat,
... )

◆ AXODBG_GetSystemErrorText()

UINT AXODBG_GetSystemErrorText ( DWORD dwSystemError,
LPSTR pszBuf,
UINT uMaxLen )

◆ AXODBG_Initialize()

void AXODBG_Initialize ( void )

◆ AXODBG_IsAligned()

BOOL AXODBG_IsAligned ( void * pv,
UINT uDataSize )

◆ AXODBG_NotOnStack()

BOOL AXODBG_NotOnStack ( void * pv)

◆ AXODBG_printf()

int cdecl AXODBG_printf ( char * lpsz,
... )

References cdecl.

◆ AXODBG_SetDebugFlag()

DWORD AXODBG_SetDebugFlag ( DWORD dwFlags)

◆ AXODBG_SetTracePrefix()

void AXODBG_SetTracePrefix ( char const * szNewTracePrefix)

◆ AXODBG_SetTracePrefixFromModuleHandle()

void AXODBG_SetTracePrefixFromModuleHandle ( HMODULE mod_handle)

◆ AXODBG_ShowSystemError()

int AXODBG_ShowSystemError ( DWORD dwSystemError)

◆ AXODBG_SystemErrorMsg()

void AXODBG_SystemErrorMsg ( DWORD dwSystemError,
LPCSTR psFile,
int nLine )