home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ERRABORT.ZIP / OS2LOCAL.H < prev    next >
C/C++ Source or Header  |  1989-09-11  |  579b  |  22 lines

  1. /* "os2local.h" for OS/2 1.1 and Microsoft C Version 5.1 compiler */
  2.  
  3. #if defined _os2local
  4.     /* Do nothing. */
  5. #else
  6.     extern void EXPENTRY errabort (PSZ pszProgramName, PSZ pszFunctionName,
  7.            PSZ pszCallerName, USHORT usLineNum, USHORT usReturn) ;
  8.  
  9.     #define ERRCHK(os2name)    if (usRC != 0) { \
  10.             errabort (pszProgramName, #os2name, pszFunctionName, \
  11.               __LINE__, usRC) ; \
  12.         }
  13.  
  14.     /* Standard devices. */
  15.     #define STDIN    0
  16.     #define STDOUT    1
  17.     #define STDERR    2
  18.  
  19.     #define _os2local
  20. #endif /* #if defined _os2local */
  21. /* end of insert file "os2local.h" */
  22.