summaryrefslogblamecommitdiffstats
path: root/private/crt32/h/rterr.h
blob: e8d6b11c38c5aed87a1f668bfa20c31a902052f1 (plain) (tree)











































































                                                                                
/***
*rterr.h - runtime errors
*
*	Copyright (c) 1990-1993, Microsoft Corporation. All rights reserved.
*
*Purpose:
*	This file defines the C runtime errors
*
*Revision History:
*	06-01-90  GJF	Module created.
*	08-08-90  GJF	Added _RT_CONIO, redefined _RT_NONCONT and
*			_RT_INVALDISP.
*	09-08-91  GJF	Added _RT_ONEXIT for Win32 (_WIN32_).
*	09-28-91  GJF	Fixed conflict with RTEs in 16-bit Win support. Also,
*			added three math errors.
*	10-23-92  GJF	Added _RT_PUREVIRT.
*	02-23-93  SKS	Update copyright to 1993
*
****/

#define _RT_STACK	0		/* stack overflow */
#define _RT_NULLPTR	1		/* null pointer assignment */
#define _RT_FLOAT	2		/* floating point not loaded */
#define _RT_INTDIV	3		/* integer divide by 0 */

/*
 * the following three errors must be in the given order!
 */
#define _RT_EXECMEM	5		/* not enough memory on exec */
#define _RT_EXECFORM	6		/* bad format on exec */
#define _RT_EXECENV	7		/* bad environment on exec */

#define _RT_SPACEARG	8		/* not enough space for arguments */
#define _RT_SPACEENV	9		/* not enough space for environment */
#define _RT_ABORT	10		/* Abnormal program termination */

#define _RT_NPTR	12		/* illegal near pointer use */
#define _RT_FPTR	13		/* illegal far pointer use */
#define _RT_BREAK	14		/* control-BREAK encountered */
#define _RT_INT 	15		/* unexpected interrupt */
#define _RT_THREAD	16		/* not enough space for thread data */
#define _RT_LOCK	17		/* unexpected multi-thread lock error */
#define _RT_HEAP	18		/* unexpected heap error */
#define _RT_OPENCON	19		/* unable to open console device */

/*
 * _RT_QWIN and _RT_NOMAIN are used in 16-bit Windows support
 */
#define _RT_QWIN	20		/* unexpected QuickWin error */
#define _RT_NOMAIN	21		/* no main procedure */


#define _RT_NONCONT	22		/* non-continuable exception */
#define _RT_INVALDISP	23		/* invalid disposition of exception */


/*
 * _RT_ONEXIT is specific to Win32 and Dosx32 platforms
 */
#define _RT_ONEXIT	24		/* insufficient heap to allocate
					 * initial table of funct. ptrs
					 * used by _onexit()/atexit(). */

#define _RT_PUREVIRT	25		/* pure virtual function call attempted
					 * (C++ error) */

/*
 * _RT_DOMAIN, _RT_SING and _RT_TLOSS are generated by the floating point
 * library.
 */
#define _RT_DOMAIN	120
#define _RT_SING	121
#define _RT_TLOSS	122

#define _RT_CRNL	252
#define _RT_BANNER	255