0ad/source/lib/sysdep/win/wdbg.h
janwas cb74250a51 - moved assert2 to sysdep/debug.h
- sysdep/debug.h includes platform-specific version, so they can define
debug_break
- no longer a debug_break wrapper that calls to specific versions (so
that the debugger breaks in the target function directly)
- unix-specific stuff is only debug ATM; call it udbg instead of unix.*

This was SVN commit r1813.
2005-01-25 18:27:00 +00:00

28 lines
533 B
C
Executable File

#ifndef WDBG_H__
#define WDBG_H__
#include "lib/types.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _MSC_VER
# define debug_break() __asm { int 3 }
#else
# error "port this or define to implementation function"
#endif
// TODO: remove this from here, and make all the exception debugging stuff nicer
struct _EXCEPTION_POINTERS;
typedef struct _EXCEPTION_POINTERS* PEXCEPTION_POINTERS;
extern int debug_main_exception_filter(unsigned int code, PEXCEPTION_POINTERS ep);
#ifdef __cplusplus
}
#endif
#endif // #ifndef WDBG_H__