forked from 0ad/0ad
janwas
4fbaea3780
move exception-specific stuff into wseh. it now grabs the entry point and wraps it in a __try block (but only for the main EXE). this works around issues with the previous SEH registration code (exceptions weren't caught in release mode when not running in debugger) This was SVN commit r5151.
24 lines
571 B
C
24 lines
571 B
C
/**
|
|
* =========================================================================
|
|
* File : wdbg.h
|
|
* Project : 0 A.D.
|
|
* Description : Win32 debug support code and exception handler.
|
|
* =========================================================================
|
|
*/
|
|
|
|
// license: GPL; see lib/license.txt
|
|
|
|
#ifndef INCLUDED_WDBG
|
|
#define INCLUDED_WDBG
|
|
|
|
#if HAVE_MS_ASM
|
|
# define debug_break() __asm { int 3 }
|
|
#else
|
|
# error "port this or define to implementation function"
|
|
#endif
|
|
|
|
|
|
extern void wdbg_set_thread_name(const char* name);
|
|
|
|
#endif // #ifndef INCLUDED_WDBG
|