scc

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

assert.c (165B)


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