Pyrogenesis  trunk
Classes | Macros | Functions
wseh.cpp File Reference
#include "precompiled.h"
#include "lib/sysdep/os/win/wseh.h"
#include "lib/byte_order.h"
#include "lib/utf8.h"
#include "lib/sysdep/cpu.h"
#include "lib/sysdep/os/win/win.h"
#include "lib/sysdep/os/win/wutil.h"
#include "lib/sysdep/os/win/wdbg_sym.h"
#include <process.h>
Include dependency graph for wseh.cpp:

Classes

struct  XTypeInfo
 
struct  XTypeInfoArray
 
struct  XInfo
 

Macros

#define NEED_COOKIE_INIT
 

Functions

static bool IsCppException (const EXCEPTION_RECORD *er)
 
static const wchar_t * GetCppExceptionDescription (const EXCEPTION_RECORD *er, wchar_t *description, size_t maxChars)
 
static const wchar_t * GetSehExceptionDescription (const EXCEPTION_RECORD *er, wchar_t *description, size_t maxChars)
 
static const wchar_t * GetExceptionDescription (const EXCEPTION_POINTERS *ep, wchar_t *description, size_t maxChars)
 
static void GetExceptionLocus (EXCEPTION_POINTERS *ep, wchar_t *file, int *line, wchar_t *func)
 
long __stdcall wseh_ExceptionFilter (struct _EXCEPTION_POINTERS *ep)
 
EXTERN_C int wmainCRTStartup ()
 
static int CallStartupWithinTryBlock ()
 
EXTERN_C int wseh_EntryPoint ()
 

Macro Definition Documentation

◆ NEED_COOKIE_INIT

#define NEED_COOKIE_INIT

Function Documentation

◆ CallStartupWithinTryBlock()

static int CallStartupWithinTryBlock ( )
static

◆ GetCppExceptionDescription()

static const wchar_t* GetCppExceptionDescription ( const EXCEPTION_RECORD *  er,
wchar_t *  description,
size_t  maxChars 
)
static
Parameters
erAn exception record for which IsCppException returned true.
description
maxChars

◆ GetExceptionDescription()

static const wchar_t* GetExceptionDescription ( const EXCEPTION_POINTERS *  ep,
wchar_t *  description,
size_t  maxChars 
)
static
Returns
a description of the exception type and cause (in English).

◆ GetExceptionLocus()

static void GetExceptionLocus ( EXCEPTION_POINTERS *  ep,
wchar_t *  file,
int *  line,
wchar_t *  func 
)
static

◆ GetSehExceptionDescription()

static const wchar_t* GetSehExceptionDescription ( const EXCEPTION_RECORD *  er,
wchar_t *  description,
size_t  maxChars 
)
static

◆ IsCppException()

static bool IsCppException ( const EXCEPTION_RECORD *  er)
static

◆ wmainCRTStartup()

EXTERN_C int wmainCRTStartup ( )

◆ wseh_EntryPoint()

EXTERN_C int wseh_EntryPoint ( )

◆ wseh_ExceptionFilter()

long __stdcall wseh_ExceptionFilter ( struct _EXCEPTION_POINTERS *  ep)