assert.c - scc - simple c99 compiler
(HTM) git clone git://git.simple-cc.org/scc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) 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 }