0ad/source/lib/sysdep/win/wseh.h
janwas 4fbaea3780 # fix for exceptions when not running in debugger
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.
2007-06-08 17:44:24 +00:00

19 lines
508 B
C

/**
* =========================================================================
* File : wseh.h
* Project : 0 A.D.
* Description : Win32 debug support code and exception handler.
* =========================================================================
*/
// license: GPL; see lib/license.txt
#ifndef INCLUDED_WSEH
#define INCLUDED_WSEH
extern LONG WINAPI wseh_ExceptionFilter(EXCEPTION_POINTERS* ep);
EXTERN_C int wseh_EntryPoint();
#endif // #ifndef INCLUDED_WSEH