home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / prog_oth / debugutl.lha / debug.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-21  |  1.2 KB  |  63 lines

  1. /*                         FILE: debug.h
  2.  *
  3.  *    Project:            DeBug Utilities
  4.  *    Version:            2.0
  5.  *
  6.  *
  7.  * This file contains header information for debugging Applications.
  8.  *
  9.  *
  10.  *
  11.  * Created:            5/19/90
  12.  * Last Revision:    Sunday 03-May-92 15:43:31
  13.  * Author:            Mark Porter
  14.  *
  15.  *
  16.  * $Revision: 1.1 $
  17.  * $Date: 92/05/05 19:59:05 $
  18.  * $Author: fog $
  19.  *
  20.  *
  21.  *    Copyright © 1992 if...only Amiga
  22.  *
  23.  *    Permission is granted to distribute this program's source, executable,
  24.  *    and documentation for non-commercial use only, provided the copyright
  25.  *    and header information are left intact.
  26.  *
  27.  */
  28.  
  29.  
  30. /*----------------------------------------------------------------------*/
  31. /*----------------------------------------------------------------------*
  32.  *
  33.  *
  34.  * $Log:    debug.h,v $
  35.  * Revision 1.1  92/05/05  19:59:05  fog
  36.  * Initial revision
  37.  * 
  38.  *
  39.  *
  40.  *----------------------------------------------------------------------*/
  41. /*----------------------------------------------------------------------*/
  42.  
  43.  
  44. #ifndef    TRACE_DEBUG_H
  45. #define    TRACE_DEBUG_H
  46.  
  47.  
  48. #ifdef        DEBUG
  49. #    define    DB( args )        args
  50. #else
  51. #    define    DB( args )
  52. #endif
  53.  
  54.  
  55. #define        ENTER( proc )    DB( Trace( 0,proc,"Entered\n" ))
  56. #define        EXIT(  proc )    DB( Trace( 0,proc,"Exited\n" ))
  57.  
  58.  
  59. extern void    Trace();
  60.  
  61.  
  62. #endif
  63.