aboutsummaryrefslogtreecommitdiffstats
path: root/common/log.h
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2018-11-26 09:22:42 +0000
committerDavid Shah <dave@ds0.me>2018-11-26 09:22:42 +0000
commitb035cb9fcf3502c74c769560f02e29adcafe6fd8 (patch)
tree597f9f963f5ed1ab6d6644f8f5d9a21c917e453d /common/log.h
parent51d1363dfeb7005ec35a2acd10fe9ae2cd8631d5 (diff)
downloadnextpnr-b035cb9fcf3502c74c769560f02e29adcafe6fd8.tar.gz
nextpnr-b035cb9fcf3502c74c769560f02e29adcafe6fd8.tar.bz2
nextpnr-b035cb9fcf3502c74c769560f02e29adcafe6fd8.zip
Add nonfatal error support and use for timing failures
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'common/log.h')
-rw-r--r--common/log.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/log.h b/common/log.h
index de5aa85c..f1727ac6 100644
--- a/common/log.h
+++ b/common/log.h
@@ -56,6 +56,7 @@ extern log_write_type log_write_function;
extern std::string log_last_error;
extern void (*log_error_atexit)();
+extern bool had_nonfatal_error;
std::string stringf(const char *fmt, ...);
std::string vstringf(const char *fmt, va_list ap);
@@ -66,7 +67,7 @@ void log_always(const char *format, ...) NPNR_ATTRIBUTE(format(printf, 1, 2));
void log_info(const char *format, ...) NPNR_ATTRIBUTE(format(printf, 1, 2));
void log_warning(const char *format, ...) NPNR_ATTRIBUTE(format(printf, 1, 2));
NPNR_NORETURN void log_error(const char *format, ...) NPNR_ATTRIBUTE(format(printf, 1, 2), noreturn);
-
+void log_nonfatal_error(const char *format, ...) NPNR_ATTRIBUTE(format(printf, 1, 2));
void log_break();
void log_flush();