Source code of Windows XP (NT5)
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.

27 lines
588 B

  1. /***
  2. *stdnewh.cpp - A 'new_handler' that throws xalloc
  3. *
  4. * Copyright (c) 1994-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * Implementation of default 'new_handler', as specified in
  8. * [lib.set.new.handler] (section 17.3.3.2 of 1/25/94 WP).
  9. *
  10. *Revision History:
  11. * 04-27-94 BES Module created.
  12. * 10-17-94 BWT Disable code for PPC.
  13. *
  14. *******************************************************************************/
  15. #include <eh.h>
  16. #include <stdlib.h>
  17. #include <stdexcpt.h>
  18. int __cdecl _standard_new_handler ( size_t )
  19. {
  20. static xalloc ex;
  21. ex.raise();
  22. return 0;
  23. }