Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.5 KiB

  1. /***
  2. *eh.h - User include file for exception handling.
  3. *
  4. * Copyright (c) 1993-1994, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * User include file for exception handling.
  8. *
  9. ****/
  10. #ifndef _EHINCLUDE_DEFINED
  11. #define _EHINCLUDE_DEFINED
  12. #ifndef __cplusplus
  13. #error "eh.h is only for C++!"
  14. #endif
  15. /* Define _CRTAPI1 (for compatibility with the NT SDK) */
  16. #ifndef _CRTAPI1
  17. #if ( (_MSC_VER >= 800) && (_M_IX86 >= 300) )
  18. #define _CRTAPI1 __cdecl
  19. #else
  20. #define _CRTAPI1
  21. #endif
  22. #endif
  23. /* Define _CRTAPI2 (for compatibility with the NT SDK) */
  24. #ifndef _CRTAPI2
  25. #if ( (_MSC_VER >= 800) && (_M_IX86 >= 300) )
  26. #define _CRTAPI2 __cdecl
  27. #else
  28. #define _CRTAPI2
  29. #endif
  30. #endif
  31. /* Define _CRTIMP */
  32. #ifndef _CRTIMP
  33. #ifdef _NTSDK
  34. /* definition compatible with NT SDK */
  35. #define _CRTIMP
  36. #else /* ndef _NTSDK */
  37. /* current definition */
  38. #ifdef _DLL
  39. #define _CRTIMP __declspec(dllimport)
  40. #else /* ndef _DLL */
  41. #define _CRTIMP
  42. #endif /* _DLL */
  43. #endif /* _NTSDK */
  44. #endif /* _CRTIMP */
  45. typedef void (_CRTAPI1 *terminate_function)();
  46. typedef void (_CRTAPI1 *unexpected_function)();
  47. struct _EXCEPTION_POINTERS;
  48. typedef void (_CRTAPI1 *_se_translator_function)(unsigned int, struct _EXCEPTION_POINTERS*);
  49. _CRTIMP void _CRTAPI1 terminate(void);
  50. _CRTIMP void _CRTAPI1 unexpected(void);
  51. _CRTIMP terminate_function _CRTAPI1 set_terminate(terminate_function);
  52. _CRTIMP unexpected_function _CRTAPI1 set_unexpected(unexpected_function);
  53. _CRTIMP _se_translator_function _CRTAPI1 _set_se_translator(_se_translator_function);
  54. #endif