home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 308_01 / debug.h < prev    next >
Text File  |  1990-06-17  |  595b  |  28 lines

  1.  
  2. /*
  3.     HEADER:         CUG308;
  4.     TITLE:          header for debug module;
  5.  
  6.     DATE:           5/6/90;
  7.     VERSION:        2.01;
  8.     FILENAME:       DEBUG.H;
  9.     SEE-ALSO:       DEBUG.C;
  10.     AUTHOR:         Michael Kelly
  11.             254 Gold St. Boston Ma. 02127;
  12.     COPYRIGHT:    May be used freely if authorship is acknowledged;
  13. */
  14.  
  15.  
  16. #if !defined(DEBUG_H)
  17. #define DEBUG_H
  18.  
  19. void err_out(const char *errmsg);
  20. void bug_out(const char *errmsg, const char *filename, int lineno);
  21.  
  22. #if defined(DEBUG)
  23. #define err_exit(a) bug_out((a),__FILE__,__LINE__)
  24. #else
  25. #define err_exit(a) err_out(a)
  26. #endif
  27. #endif
  28.