home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / h.z / EXCEPT.H < prev    next >
C/C++ Source or Header  |  1996-07-24  |  1KB  |  60 lines

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