home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / merr.c < prev    next >
C/C++ Source or Header  |  1998-06-17  |  766b  |  35 lines

  1. /***
  2. *merr.c - floating point exception handling
  3. *
  4. *       Copyright (c) 1991-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *
  8. *******************************************************************************/
  9.  
  10. #include <math.h>
  11.  
  12. /*
  13.  * Define flag signifying the default _matherr routine is being used.
  14.  */
  15. int __defaultmatherr = 1;
  16.  
  17. /***
  18. *int _matherr(struct _exception *pexcept) - handle math errors
  19. *
  20. *Purpose:
  21. *   Permits the user customize fp error handling by redefining this function.
  22. *
  23. *   The default matherr does nothing and returns 0
  24. *
  25. *Entry:
  26. *
  27. *Exit:
  28. *
  29. *Exceptions:
  30. *******************************************************************************/
  31. int _matherr(struct _exception *pexcept)
  32. {
  33.     return 0;
  34. }
  35.