home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c065 / 1.ddi / CLIB1.ZIP / ASSERT.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-07  |  1.1 KB  |  29 lines

  1. /*------------------------------------------------------------------------
  2.  * filename - assert.c
  3.  *
  4.  * function(s)
  5.  *        __assertfail - prints error message and aborts
  6.  *-----------------------------------------------------------------------*/
  7.  
  8. /*[]------------------------------------------------------------[]*/
  9. /*|                                                              |*/
  10. /*|     Turbo C Run Time Library - Version 3.0                   |*/
  11. /*|                                                              |*/
  12. /*|                                                              |*/
  13. /*|     Copyright (c) 1987,1988,1990 by Borland International    |*/
  14. /*|     All Rights Reserved.                                     |*/
  15. /*|                                                              |*/
  16. /*[]------------------------------------------------------------[]*/
  17.  
  18.  
  19. #include <stdio.h>
  20. #include <stdlib.h>
  21. #include <assert.h>
  22.  
  23. void __assertfail(char *msg, char *cond, char *file, int line)
  24. {
  25.     fprintf(stderr, msg, cond, file, line);
  26.     abort();
  27. }
  28.  
  29.