Leaked source code of windows server 2003
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.

48 lines
907 B

  1. //+--------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1996.
  5. //
  6. // File: dfexcept.hxx
  7. //
  8. // Contents: Macros to make exception code no-ops in 16-bit
  9. // Includes real exceptions for 32-bit
  10. //
  11. //---------------------------------------------------------------
  12. #ifndef __DFEXCEPT_HXX__
  13. #define __DFEXCEPT_HXX__
  14. struct Exception
  15. {
  16. SCODE GetErrorCode(void) { return 0; }
  17. };
  18. #ifdef _MSC_VER
  19. #pragma warning (disable:4127) // conditional expression is constant
  20. #endif
  21. #undef TRY
  22. #define TRY
  23. #undef CATCH
  24. #define CATCH(c, e) while (0) { Exception e;
  25. #undef AND_CATCH
  26. #define AND_CATCH(c, e) } else while (0) { Exception e;
  27. #undef END_CATCH
  28. #define END_CATCH }
  29. #undef RETHROW
  30. #define RETHROW(x)
  31. #ifndef _MSC_VER
  32. #undef try
  33. #define try
  34. #undef catch
  35. #define catch(e) if (0)
  36. #endif
  37. #endif // ifndef __DFEXCEPT_HXX__