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.

58 lines
1.4 KiB

  1. // xstddef standard header
  2. #ifndef _XSTDDEF_
  3. #define _XSTDDEF_
  4. #ifndef _YVALS
  5. #include <yvals.h>
  6. #endif
  7. #include <cstddef>
  8. /* Define _CRTIMP */
  9. #ifndef _CRTIMP
  10. #ifdef _DLL
  11. #define _CRTIMP __declspec(dllimport)
  12. #else /* ndef _DLL */
  13. #define _CRTIMP
  14. #endif /* _DLL */
  15. #endif /* _CRTIMP */
  16. #ifdef _MSC_VER
  17. #pragma pack(push,8)
  18. #endif /* _MSC_VER */
  19. _STD_BEGIN
  20. // EXCEPTION MACROS
  21. #define _TRY_BEGIN try {
  22. #define _CATCH(x) } catch (x) {
  23. #define _CATCH_ALL } catch (...) {
  24. #define _CATCH_END }
  25. #define _RAISE(x) throw (x)
  26. #define _RERAISE throw
  27. #define _THROW0() throw ()
  28. #define _THROW1(x) throw (x)
  29. #define _THROW(x, y) throw x(y)
  30. // explicit KEYWORD
  31. // BITMASK MACROS
  32. #define _BITMASK(E, T) typedef int T
  33. #define _BITMASK_OPS(T)
  34. // MISCELLANEOUS MACROS
  35. #define _DESTRUCTOR(ty, ptr) (ptr)->~ty()
  36. #define _PROTECTED public
  37. #define _TDEF(x) = x
  38. #define _TDEF2(x, y) = x, y
  39. #define _CNTSIZ(iter) ptrdiff_t
  40. #define _TDEFP(x)
  41. #define _STCONS(ty, name, val) enum {name = val}
  42. // TYPE DEFINITIONS
  43. enum _Uninitialized {_Noinit};
  44. // FUNCTIONS
  45. _CRTIMP void __cdecl _Nomemory();
  46. _STD_END
  47. #ifdef _MSC_VER
  48. #pragma pack(pop)
  49. #endif /* _MSC_VER */
  50. #endif /* _XSTDDEF_ */
  51. /*
  52. * Copyright (c) 1995 by P.J. Plauger. ALL RIGHTS RESERVED.
  53. * Consult your license regarding permissions and restrictions.
  54. */