ref: b8ea542ae6db4934ceb3d3a69a7884830604df31
dir: /inc/cc.h/
#ifndef __bool_true_and_false_defined #ifdef NBOOL typedef unsigned bool; #else #include <stdbool.h> #endif #endif #ifndef NDEBUG extern int debug; #define DBG(fmt, ...) dbg(fmt, __VA_ARGS__) #define DBGON() (debug = 1) #else #define DBG(...) #define DBGON() #endif extern void die(const char *fmt, ...); extern void dbg(const char *fmt, ...); extern void *xmalloc(size_t size); extern void *xcalloc(size_t nmemb, size_t size); extern char *xstrdup(const char *s); extern void *xrealloc(void *buff, register size_t size);