Lines Matching refs:level
29 * level is the error level
30 * level >= error_info.core!=0 dumps core
31 * level >= ERROR_FATAL calls error_info.exit
32 * level < 0 is for debug tracing
345 error(int level, ...)
349 va_start(ap, level);
350 errorv(NiL, level, ap);
355 errorv(const char* id, int level, va_list ap)
379 if (level > 0)
381 flags = level & ~ERROR_LEVEL;
382 level &= ERROR_LEVEL;
416 if (level < error_info.trace || (flags & ERROR_LIBRARY) && !(((error_info.set | error_info.flags) ^ error_info.clear) & ERROR_LIBRARY) || level < 0 && error_info.mask && !(error_info.mask & (1<<(-level - 1))))
418 if (level >= ERROR_FATAL)
419 (*error_info.exit)(level - 1);
451 if (level && !(flags & ERROR_NOID))
453 if (error_info.context && level > 0)
472 if (level > 0 && error_info.line > ((flags & ERROR_INTERACTIVE) != 0))
487 switch (level)
499 if (level < 0)
503 sfprintf(stkstd, "%s%d:%s", s, level, level > -10 ? " " : "");
537 * level&ERROR_OUTPUT on return means message
546 error_info.last_errno = (level >= 0) ? 0 : errno;
548 if (error_info.auxilliary && level >= 0)
549 level = (*error_info.auxilliary)(stkstd, level, flags);
552 if (level > 0)
554 if ((level & ~ERROR_OUTPUT) > 1)
559 if (level < 0 || !(level & ERROR_OUTPUT))
584 level &= ERROR_LEVEL;
590 if (level >= error_state.breakpoint && error_state.breakpoint && (!error_state.match || !regexec(error_state.match, s ? s : format, 0, NiL, 0)) && (!error_state.count || !--error_state.count))
614 if (level >= ERROR_FATAL)
615 (*error_info.exit)(level - ERROR_FATAL + 1);