home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / doslynx / inc / trace.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  647 b   |  27 lines

  1. #ifndef RELEASE
  2. #ifndef __TRACE_H
  3. //    Avoid include redundancy
  4. #define __TRACE_H
  5.  
  6. //    Copyright (c) 1994, University of Kansas, All Rights Reserved
  7. //
  8. //    Include File:    trace.h
  9. //    Purpose:    Provide non debugging code tracing.
  10. //    Remarks/Portability/Dependencies/Restrictions:
  11. //    Revision History:
  12. //        01-25-94    recreated
  13. //                previously deleted since believed causing
  14. //                exe errors.  real bug found, now
  15. //                reimplementing.
  16.  
  17. #include"tcapture.h"
  18.  
  19. #define trace(message) {\
  20.     if(::TC != NULL && c_trace)    {\
  21.         cout << __FILE__ << ':' << __LINE__ << ": " << message <<\
  22.             '\n';\
  23.     }\
  24. }
  25.  
  26. #endif // __TRACE_H
  27. #endif // RELEASE