Skip to content
Snippets Groups Projects
Commit aaf09f2f authored by jdh8d's avatar jdh8d
Browse files

added assert.h

parent a323269a
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@ lib/crt32.s -text
lib/crt64.s -text
lib/tiny_linker_script -text
libc/Makefile.in -text
libc/include/assert.h -text
libc/include/cgc.h -text
libc/include/itoa.h -text
libc/include/itox.h -text
......
#ifndef ASSERT_H
#define ASSERT_H
#ifndef assert
#ifdef CGC
#define assert(a) ( (a) ? 0 : _terminate(199))
#else
#define assert(a) ( (a) ? 0 : (*(int*)0) )
#endif
#endif
#endif ASSERT_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment