home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / xstddef < prev    next >
Text File  |  1998-06-16  |  2KB  |  68 lines

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