9os

Experimental kernel using plan9 ideas for embedded device
git clone git://git.simple-cc.org/9os
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 }