home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 1.ddi / INCLUDE.ZIP / NEW.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  627 b   |  34 lines

  1. /*  new.h
  2.  
  3.     Access to operator new() and newhandler()
  4.  
  5.     Copyright (c) 1990, 1992 by Borland International
  6.     All Rights Reserved.
  7. */
  8.  
  9. #if !defined(__NEW_H)
  10. #define __NEW_H
  11.  
  12. #if !defined(___DEFS_H)
  13. #include <_defs.h>
  14. #endif
  15.  
  16. #ifndef __cplusplus
  17. #error Must use C++ with new.h
  18. #endif
  19.  
  20. typedef void (_FAR * _FARFUNC pvf)();
  21.  
  22. extern void (_FAR * _Cdecl _FARFUNC _new_handler)();
  23.  
  24. void (_FAR * _FARFUNC set_new_handler( void (_FAR * _FARFUNC )() ))();
  25.  
  26. #ifdef __MSC
  27. #define _set_new_handler(f) set_new_handler(f)
  28. #endif
  29.  
  30. void _FAR * _FARFUNC operator new( unsigned );
  31.  
  32. #endif  /* __NEW_H */
  33.  
  34.