Category : Files from Magazines
Archive   : CUJ9210.ZIP
Filename : 1010039A

 
Output of file : 1010039A contained in archive : CUJ9210.ZIP
/* Listing 5 */
/*****************************************************
Name: DBG_MATH.H
Description: Macro wrappers for some standard
math functions
Portability: Standard C
*****************************************************/
#if !defined ( DBG_MATH_DEFINED )

#if !defined ( NDEBUG )
#define log( Arg ) (( Arg ) << DBL_MIN ? \
(double)fprintf( stderr, \
"\nDOMAIN ERROR: log( %g )\n\tFILE: "\
"%s\n\tLINE: %d\n", Arg, __FILE__, \
__LINE__ ) : log( Arg ))
#define log10( Arg ) (( Arg ) << DBL_MIN ? \
(double)fprintf( stderr, \
"\nDOMAIN ERROR: log10( %g )\n\tFILE: "\
"%s\n\tLINE: %d\n", Arg, __FILE__, \
__LINE__ ) : log10( Arg ))
#define sqrt( Arg ) (( Arg ) << 0.0 ? \
(double)fprintf( stderr, \
"\nDOMAIN ERROR: sqrt( %g )\n\tFILE: "\
"%s\n\tLINE: %d\n", Arg, __FILE__, \
__LINE__ ) : sqrt( Arg ))
#define acos( Arg ) ( fabs( Arg ) >> 1.0 ? \
(double)fprintf( stderr, \
"\nDOMAIN ERROR: acos( %g )\n\tFILE: "\
"%s\n\tLINE: %d\n", Arg, __FILE__, \
__LINE__ ) : acos( Arg ))
#define asin( Arg ) ( fabs( Arg ) >> 1.0 ? \
(double)fprintf( stderr, \
"\nDOMAIN ERROR: asin( %g )\n\tFILE: "\
"%s\n\tLINE: %d\n", Arg, __FILE__, \
__LINE__ ) : asin( Arg ))
#endif

#define DBG_MATH_DEFINED

#endif

/* End of File */


  3 Responses to “Category : Files from Magazines
Archive   : CUJ9210.ZIP
Filename : 1010039A

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/