home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / new.cpp < prev    next >
C/C++ Source or Header  |  1998-06-17  |  533b  |  27 lines

  1. /***
  2. *new.cxx - defines C++ new routine
  3. *
  4. *       Copyright (c) 1990-1997, Microsoft Corporation.  All rights reserved.
  5. *
  6. *Purpose:
  7. *       Defines C++ new routine.
  8. *
  9. *******************************************************************************/
  10.  
  11.  
  12. #include <cruntime.h>
  13. #include <malloc.h>
  14. #include <new.h>
  15. #include <stdlib.h>
  16. #ifdef WINHEAP
  17. #include <winheap.h>
  18. #else  /* WINHEAP */
  19. #include <heap.h>
  20. #endif  /* WINHEAP */
  21.  
  22. void * operator new( unsigned int cb )
  23. {
  24.         return _nh_malloc( cb, 1 );
  25. }
  26.  
  27.