blob: 9227a5b4bd3e4c64d7e86619b43515988dd548ec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/***
* hpabort.c - Abort process due to fatal heap error
*
* Copyright (c) 1988-1991, Microsoft Corporation. All rights reserved.
*
*Purpose:
*
*Revision History:
* 11-13-89 JCR Module created
* 12-18-89 GJF #include-ed heap.h, also added explicit _cdecl to
* function definition.
* 03-11-90 GJF Replaced _cdecl with _CALLTYPE1 and added #include
* <cruntime.h>.
* 10-03-90 GJF New-style function declarator.
* 10-11-90 GJF Changed interface to _amsg_exit().
*
*******************************************************************************/
#include <cruntime.h>
#include <heap.h>
#include <internal.h>
#include <rterr.h>
/***
* _heap_abort() - Abort process due to fatal heap error
*
*Purpose:
* Terminate the process and output a heap error message
*
*Entry:
* Void
*
*Exit:
* Never returns
*
*Exceptions:
*
*******************************************************************************/
void _CALLTYPE1 _heap_abort (
void
)
{
_amsg_exit(_RT_HEAP); /* heap error */
/*** PROCESS TERMINATED ***/
}
|