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

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