home *** CD-ROM | disk | FTP | other *** search
/ MacGames Sampler / PHT MacGames Bundle.iso / MacSource Folder / Samples from the CD / Editors / emacs / Emacs-1.14b1-sources / sources / unix-emulation-src / assert.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-03  |  533 b   |  20 lines  |  [TEXT/EMAC]

  1. /*
  2.  * Copyright (C) 1993, 1994 Marc Parmet.
  3.  * This file is part of the Macintosh port of GNU Emacs.
  4.  *
  5.  * GNU Emacs is distributed in the hope that it will be useful,
  6.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  7.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  8.  * GNU General Public License for more details.
  9.  */
  10.  
  11. #include "assert.h"
  12. #include "stdio.h"
  13.  
  14. int
  15. __assert(char *expr, char *file, int line)
  16. {
  17.     fprintf(stderr, "Assertion failed: %s, file %s, line %d\n", expr, file, line);
  18.     abort();
  19. }
  20.