/* if condition is true, log and abort */ void FailIf(int cond, int err, char const *fmt, ...) { ZLO(!cond); SetExitState(msg); NaClExit(err); }
/* * append tag (if data is available) and put the message to syslog * note: should only be used from ZLOG macro */ void ZLog(int priority, char *fmt, ...) { ZLO(priority > verbosity); assert(priority != LOG_FATAL); }
/* if condition is true, log and continue */ void LogIf(int cond, char const *fmt, ...) { ZLO(!cond); }
void FailIf(int cond, int err, char const *fmt, ...) { ZLO(!cond); SetExitState(msg); ReportDtor(err); }