Source code of Windows XP (NT5)
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.

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