home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / borhead.zip / NEW.H < prev    next >
C/C++ Source or Header  |  1994-11-09  |  945b  |  63 lines

  1. /*  new.h
  2.  
  3.     Access to operator new() and newhandler()
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 1.5
  9.  *
  10.  *      Copyright (c) 1990, 1994 by Borland International
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14.  
  15. #if !defined(__NEW_H)
  16. #define __NEW_H
  17.  
  18. #ifndef __cplusplus
  19. #error Must use C++ with new.h
  20. #endif
  21.  
  22. #if !defined(___DEFS_H)
  23. #include <_defs.h>
  24. #endif
  25.  
  26.  
  27. #if !defined(RC_INVOKED)
  28.  
  29. #if defined(__STDC__)
  30. #pragma warn -nak
  31. #endif
  32.  
  33. #endif  /* !RC_INVOKED */
  34.  
  35.  
  36. #ifndef _SIZE_T
  37. #define _SIZE_T
  38. typedef unsigned size_t;
  39. #endif
  40.  
  41. class _EXPCLASS xalloc;
  42.  
  43. typedef void (* _RTLENTRY new_handler)() /* throw(xalloc) */;
  44.  
  45. new_handler _RTLENTRY set_new_handler(new_handler);
  46.  
  47. #ifdef __MSC  // Uses non-ANSI name
  48. #define _set_new_handler(f) set_new_handler(f)
  49. #endif
  50.  
  51.  
  52. #if !defined(RC_INVOKED)
  53.  
  54. #if defined(__STDC__)
  55. #pragma warn .nak
  56. #endif
  57.  
  58. #endif  /* !RC_INVOKED */
  59.  
  60.  
  61. #endif  /* __NEW_H */
  62.  
  63.