home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / swtools / libdwarf / pro_error.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  824 b   |  29 lines

  1. /*
  2.  
  3.     pro_error.h
  4.  
  5.     Macros for handling errors.   Made into macros since
  6.     these are often used and may need to change.
  7.  
  8.     User must supply a trailing ;  as in normal statements
  9.     Made as comma expresions so they can be added to an
  10.     if or else or between them without causing any surprises.
  11.  
  12.     $Revision: 1.2 $     $Date: 1993/08/16 23:12:16 $
  13. */
  14.  
  15.  
  16. /* Handle error passing in the name of the Dwarf_P_Debug
  17.    User must supply {} around the macro.
  18.    Putting the {} here leads to macro uses that don't look like C.
  19.    The error argument to dwarf_error is hard coded here as 'error'
  20. */
  21. #define DWARF_P_DBG_ERROR(dbg,errval,retval) \
  22.      _dwarf_p_error(dbg,error,errval); return(retval);
  23.  
  24. struct Dwarf_Error_s {
  25.     Dwarf_Sword         er_errval;
  26. };
  27.  
  28. void _dwarf_p_error(Dwarf_P_Debug dbg, Dwarf_Error *error, Dwarf_Word  errval);
  29.