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

  1. /*                    Listing 3                     */
  2. /*****************************************************
  3.                 Name: DBG_STAK.H
  4.          Description: Macro wrapper for return keyword
  5.                       to measure minimum free stack.
  6.          Portability: Standard C
  7. *****************************************************/
  8. #if !defined ( DBG_STAK_DEFINED )
  9.  
  10.    #if !defined ( NDEBUG )
  11.       size_t get_min_stackavail( void );
  12.       size_t check_min_stackavail( void );
  13.       #define return( Arg ) \
  14.          do \
  15.             { \
  16.             check_min_stackavail(); \
  17.             return ( Arg ); \
  18.             } while( 0 )
  19.    #endif
  20.  
  21.    #define DBG_STAK_DEFINED
  22.  
  23. #endif
  24.  
  25. /* End of File */
  26.  
  27.