home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / modhead1.zip / NEW.H < prev    next >
C/C++ Source or Header  |  1995-09-17  |  685b  |  33 lines

  1. /*
  2.  *   new.h
  3.  *
  4.  *   C++ operator new and related functions.
  5.  *
  6.  *           Copyright (c) 1991-1992, MetaWare Incorporated
  7.  */
  8.  
  9. /*   $Id: new.h,v 1.4 1994/11/07 23:33:13 budis Exp budis $ */
  10.  
  11.  
  12. #ifndef __NEW_H
  13. #define __NEW_H
  14.  
  15. #ifdef __CPLUSPLUS__
  16.  
  17. #ifndef __STDDEF_H
  18. #include <stddef.h>
  19. #endif
  20.  
  21. // The "new handler" will be called whenever operator new is unable to
  22. // allocate memory.  After it returns, operator new will return NULL (0).
  23. extern void (*set_new_handler(void(*)(void)))(void);
  24.  
  25. extern void *operator new(size_t, void*);
  26.  
  27. #endif __CPLUSPLUS__
  28.  
  29. #endif __NEW_H
  30.  
  31. /**          Copyright (c) 1991-1992, MetaWare Incorporated            **/
  32.  
  33.