Rev | Line | |
---|
[9913] | 1 | /* $Id: exceptutil.h,v 1.15 2003-03-06 12:49:08 sandervl Exp $ */
|
---|
[620] | 2 |
|
---|
| 3 | /*
|
---|
| 4 | * Exception + misc functions for OS/2
|
---|
| 5 | * Copyright 1998 Sander van Leeuwen
|
---|
| 6 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 7 | */
|
---|
| 8 | #ifndef __EXCEPT_H__
|
---|
| 9 | #define __EXCEPT_H__
|
---|
| 10 |
|
---|
| 11 | #ifdef __cplusplus
|
---|
| 12 | extern "C" {
|
---|
| 13 | #endif
|
---|
| 14 |
|
---|
| 15 | //SvL: Replace original startup code exception handler
|
---|
| 16 | #ifndef WIN32_TIBSEL
|
---|
| 17 | void ReplaceExceptionHandler(void);
|
---|
| 18 | void ChangeTIBStack();
|
---|
| 19 | #endif
|
---|
| 20 | void __cdecl SetExceptionChain(DWORD);
|
---|
| 21 |
|
---|
[21916] | 22 | PVOID QueryExceptionChain();
|
---|
[1403] | 23 |
|
---|
[21916] | 24 | void SYSTEM OS2SetExceptionHandler(void *exceptframe);
|
---|
| 25 | void SYSTEM OS2UnsetExceptionHandler(void *exceptframe);
|
---|
[620] | 26 |
|
---|
[3160] | 27 | #ifdef DEBUG
|
---|
| 28 | void PrintExceptionChain();
|
---|
| 29 | #else
|
---|
| 30 | #define PrintExceptionChain()
|
---|
| 31 | #endif
|
---|
| 32 |
|
---|
[9913] | 33 | ULONG CDECL AsmCallThreadHandler(BOOL fAlignStack, ULONG handler, LPVOID parameter);
|
---|
[5354] | 34 |
|
---|
[6133] | 35 | DWORD CDECL CallEntryPoint(DWORD entryPoint, DWORD parameter);
|
---|
| 36 |
|
---|
[620] | 37 | #ifdef __cplusplus
|
---|
| 38 | }
|
---|
| 39 | #endif
|
---|
| 40 |
|
---|
[4496] | 41 | #define ENTER_EXCEPTION 0
|
---|
| 42 | #define LEAVE_EXCEPTION 1
|
---|
[8548] | 43 | int LogException(int state, int prevlock = 0);
|
---|
[4496] | 44 |
|
---|
[5354] | 45 |
|
---|
[620] | 46 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.