Add the few last things to get gcc_complete working

This commit is contained in:
jD91mZM2
2018-06-25 11:43:44 +02:00
parent 320eb0ecd0
commit 441bf9f00b
9 changed files with 52 additions and 17 deletions
+14
View File
@@ -0,0 +1,14 @@
#ifndef _ASSERT_H
#define _ASSERT_H
#ifdef NDEBUG
# define assert(cond)
#else
# include <stdio.h>
# define assert(cond) if (!(cond)) { \
fprintf(stderr, "%s: %s:%d: Assertion `%s` failed.\n", __func__, __FILE__, __LINE__, #cond); \
abort(); \
}
#endif
#endif