home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / sehmap.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  825 b   |  29 lines

  1. /*
  2.  
  3.   SEHMAP.H - Map old-style structured exception handling to correct names.
  4.  
  5.   The mapping of structured exception handling statements from {try, except,
  6.   finally, leave} to their proper names (prefaced by "__") has been removed
  7.   from win32.mak.  This header is provided solely for compatibility with
  8.   source code that used the older convention.
  9.  
  10. */
  11.  
  12.  
  13. #ifndef __cplusplus
  14. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  15. #undef try
  16. #undef except
  17. #undef finally
  18. #undef leave
  19. #define try     __try
  20. #define except  __except
  21. #define finally __finally
  22. #define leave   __leave
  23. #define abnormal_termination()    __abnormal_termination
  24. #define exception_code()          __exception_code
  25. #define exception_info()          ((PEXCEPTION_POINTERS)__exception_info)
  26.  
  27. #pragma option pop /*P_O_Pop*/
  28. #endif
  29.