scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

__assert.c (192B)


      1 #include <assert.h>
      2 #include <stdio.h>
      3 #include <stdlib.h>
      4 
      5 void
      6 __assert(char *exp, char *file, long line)
      7 {
      8 	fprintf(stderr, "%s:%ld: assertion failed '%s'\n", file, line, exp);
      9 	abort();
     10 }