scc

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

assert.c (164B)


      1 #include <assert.h>
      2 #include <stdlib.h>
      3 #include <stdio.h>
      4 #undef assert
      5 
      6 void
      7 assert(int exp)
      8 {
      9 	if (exp)
     10 		return;
     11 	fputs("assert failed\n", stderr);
     12 	abort();
     13 }