home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c083 / 14.ddi / GENINC.PAK / NEW.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-02  |  720 b   |  43 lines

  1. /*  new.h
  2.  
  3.     Access to operator new() and newhandler()
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 6.0
  9.  *
  10.  *      Copyright (c) 1990, 1993 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. #ifndef _SIZE_T
  27. #define _SIZE_T
  28. typedef unsigned size_t;
  29. #endif
  30.  
  31. class _EXPCLASS xalloc;
  32.  
  33. typedef void (* _RTLENTRY new_handler)() /* throw(xalloc) */;
  34.  
  35. new_handler _RTLENTRY set_new_handler(new_handler);
  36.  
  37. #ifdef __MSC  // Uses non-ANSI name
  38. #define _set_new_handler(f) set_new_handler(f)
  39. #endif
  40.  
  41. #endif  /* __NEW_H */
  42.  
  43.