26 extern "C" void abort(
void);
27 extern "C" int printf(
const char *format, ...);
28 extern "C" unsigned int write(
int fd,
const void *buf,
unsigned int count);
42 #ifdef DISABLE_LOGGING 43 auto ignored =
write(1,
"abort called in the unwinder", 28);
46 printf(
"%s FATAL ERROR [%d]: %s\n", func, line, msg);
51 #define ABORT(a) { private_abort(a,__func__,__LINE__); __builtin_unreachable(); } void write(field_type field, value_type value, name_type name="")
void private_abort(const char *msg, const char *func, int line)