* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifndef MINIMAL_STDLIB_H
+#define MINIMAL_STDLIB_H
+
#define _assert(expr) \
do if (!(expr)) { \
fprintf(stderr, "%s(%u): _assert(%u:%s)\n", __FILE__, __LINE__, errno, #expr); \
for (;;)
#define _trace() \
- printf("_trace(%s:%u)\n", __FILE__, __LINE__)
+ printf("_trace(%s:%u): %s\n", __FILE__, __LINE__, __FUNCTION__)
#define _not(type) \
((type) ~ (type) 0)
#define _breakpoint() \
__asm__ { int 0x3 }
-#define _unused \
+#define _disused \
__attribute__((unused))
#include <errno.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdint.h>
+
+#endif/*MINIMAL_STDLIB_H*/