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

  1. /***
  2. *hpabort.c - Abort process due to fatal heap error
  3. *
  4. *       Copyright (c) 1988-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *
  8. *******************************************************************************/
  9.  
  10. #include <cruntime.h>
  11. #include <internal.h>
  12. #include <rterr.h>
  13.  
  14.  
  15. /***
  16. * _heap_abort() - Abort process due to fatal heap error
  17. *
  18. *Purpose:
  19. *       Terminate the process and output a heap error message
  20. *
  21. *Entry:
  22. *       Void
  23. *
  24. *Exit:
  25. *       Never returns
  26. *
  27. *Exceptions:
  28. *
  29. *******************************************************************************/
  30.  
  31. void __cdecl _heap_abort (
  32.         void
  33.         )
  34. {
  35.         _amsg_exit(_RT_HEAP);           /* heap error */
  36.         /*** PROCESS TERMINATED ***/
  37. }
  38.