home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_10_10 / 1010032a < prev    next >
Text File  |  1992-08-10  |  705b  |  27 lines

  1. /*                    Listing 1                     */
  2. /*****************************************************
  3.                 Name: DBG_RTRN.H
  4.          Description: Macro wrapper for return keyword
  5.          Portability: Standard C
  6. *****************************************************/
  7. #if !defined ( DBG_RTRN_DEFINED )
  8.  
  9.    #if !defined ( NDEBUG )
  10.       #define return( Arg ) \
  11.       do \
  12.          { \
  13.          if ( Arg != EXIT_SUCCESS ) \
  14.             fprintf( stderr, "\nRETURN VALUE: "\
  15.                   "%d\n\tFILE: %s\n\tLINE: %d\n", \
  16.                   Arg, __FILE__, __LINE__ ); \
  17.          return ( Arg ); \
  18.          } while ( 0 )
  19.    #endif
  20.  
  21.    #define DBG_RTRN_DEFINED
  22.  
  23. #endif
  24.  
  25. /* End of File */
  26.  
  27.