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

  1. /***
  2. *syserr.h - constants/macros for error message routines
  3. *
  4. *       Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *       This file contains macros/constants for perror, strerror,
  8. *       and _strerror.
  9. *
  10. *       [Internal]
  11. *
  12. ****/
  13.  
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif  /* _MSC_VER > 1000 */
  17.  
  18. #ifndef _INC_SYSERR
  19. #define _INC_SYSERR
  20.  
  21. #ifndef _CRTBLD
  22. /*
  23.  * This is an internal C runtime header file. It is used when building
  24.  * the C runtimes only. It is not to be used as a public header file.
  25.  */
  26. #error ERROR: Use of C runtime library internal header file.
  27. #endif  /* _CRTBLD */
  28.  
  29. /* Macro for perror, strerror, and _strerror */
  30.  
  31. #define _sys_err_msg(m) _sys_errlist[(((m)<0)||((m)>=_sys_nerr)?_sys_nerr:(m))]
  32.  
  33. /* Maximum length of an error message.
  34.    NOTE: This parameter value must be correspond to the length of the longest
  35.    message in sys_errlist (source module syserr.c). */
  36.  
  37. #define _SYS_MSGMAX 38
  38.  
  39. #endif  /* _INC_SYSERR */
  40.