home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / watc11up.zip / cpplib_hdr.zip / h / except.h < prev    next >
C/C++ Source or Header  |  2001-08-28  |  1KB  |  64 lines

  1. //
  2. //  except.h -- C++ default exception handlers
  3. //
  4. //  Copyright by WATCOM International Corp. 1988-1996.  All rights reserved.
  5. //  Copyright by Sybase, Inc. 1997-1999.  All rights reserved.
  6. //
  7. #ifndef _EXCEPT_H_INCLUDED
  8. #define _EXCEPT_H_INCLUDED
  9. #if !defined(_ENABLE_AUTODEPEND)
  10.   #pragma read_only_file;
  11. #endif
  12.  
  13. #ifndef __cplusplus
  14. #error except.h is for use with C++
  15. #endif
  16. #ifndef _COMDEF_H_INCLUDED
  17.  #include <_comdef.h>
  18. #endif
  19.  
  20. #ifndef _PFV_DEFINED
  21. #define _PFV_DEFINED
  22. #define _PFV_DEFINED_
  23. typedef void (*PFV)( void );
  24. #endif
  25. #ifndef _PFU_DEFINED
  26. #define _PFU_DEFINED
  27. #define _PFU_DEFINED_
  28. typedef int (*PFU)( unsigned );
  29. #endif
  30. #ifndef _PNH_DEFINED
  31. #define _PNH_DEFINED
  32. #define _PNH_DEFINED_
  33. typedef int (*_PNH)( unsigned );
  34. #endif
  35. #if defined(__SW_BR)
  36.   #ifndef _PPV_DEFINED
  37.   #define _PPV_DEFINED
  38.   #define _PPV_DEFINED_
  39.   typedef void (*_PVV)( void *);
  40.   #endif
  41.   #ifndef _PUP_DEFINED
  42.   #define _PUP_DEFINED
  43.   #define _PUP_DEFINED_
  44.   typedef void* (*_PUP)( unsigned );
  45.   #endif
  46. #endif
  47.  
  48. #ifndef _WATCOM_EXCEPTION_DEFINED
  49. #define _WATCOM_EXCEPTION_DEFINED
  50. #define _WATCOM_EXCEPTION_DEFINED_
  51. struct __WATCOM_exception {
  52. #if defined(__AXP__) || defined(__PPC__)
  53.     void *__filler;
  54. #endif
  55. };
  56. #endif
  57.  
  58. _WPRTLINK extern void terminate( void );
  59. _WPRTLINK extern PFV set_terminate( PFV );
  60. _WPRTLINK extern void unexpected( void );
  61. _WPRTLINK extern PFV set_unexpected( PFV );
  62.  
  63. #endif
  64.