home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Collection - Online Library - January 1996
/
CKITOS2196.ISO
/
diskette
/
gg244090.dsk
/
unc.dsk
/
CHAPTER.11
/
ERRCHK.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-04
|
727b
|
22 lines
# ifndef _ERRCHK_H
# define _ERRCHK_H
# ifndef _H_STDIO
# include <stdio.h>
# endif
char dce_error_string[256];
error_status_t error_inq_st;
# define ERRCHK(x) \
if ( (x) != error_status_ok ) { \
fprintf( stderr, "%s: error in %s[%d]:", argv[0] , \
__FILE__ , __LINE__ - 1 ); \
dce_error_inq_text(x, dce_error_string, &error_inq_st); \
fprintf(stderr, " %s.\n", dce_error_string); \
fflush(stderr); \
exit ( x ); \
}
# endif