Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
528 B

  1. // newopnt operator new(size_t, const nothrow_t&) for Microsoft C++
  2. #define _USE_ANSI_CPP // suppress defaultlib directive for Std C++ Lib
  3. #include <new>
  4. void *__cdecl operator new(size_t count, const std::nothrow_t&)
  5. _THROW0()
  6. { // try to allocate count bytes
  7. void *p;
  8. _TRY_BEGIN
  9. p = operator new(count);
  10. _CATCH_ALL
  11. p = 0;
  12. _CATCH_END
  13. return (p);
  14. }
  15. /*
  16. * Copyright (c) 1992-2001 by P.J. Plauger. ALL RIGHTS RESERVED.
  17. * Consult your license regarding permissions and restrictions.
  18. V3.10:0009 */