diff options
author | David Shah <dave@ds0.me> | 2018-11-26 19:14:38 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2018-11-26 19:14:38 +0000 |
commit | 4a44bc569abde28b8c9d7440447295af683b92f4 (patch) | |
tree | 78b4c878958f1a1c6c81d5702d0cef5d8e1a0765 /common/log.h | |
parent | 0adc0d75297fa81034aa3f325cf2758314ca1336 (diff) | |
download | nextpnr-4a44bc569abde28b8c9d7440447295af683b92f4.tar.gz nextpnr-4a44bc569abde28b8c9d7440447295af683b92f4.tar.bz2 nextpnr-4a44bc569abde28b8c9d7440447295af683b92f4.zip |
Print warning and error count at end of execution
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'common/log.h')
-rw-r--r-- | common/log.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/log.h b/common/log.h index f1727ac6..77adbb2f 100644 --- a/common/log.h +++ b/common/log.h @@ -26,8 +26,8 @@ #include <stdarg.h> #include <stdio.h> #include <string> +#include <unordered_map> #include <vector> - #include "nextpnr.h" NEXTPNR_NAMESPACE_BEGIN @@ -57,6 +57,7 @@ extern log_write_type log_write_function; extern std::string log_last_error; extern void (*log_error_atexit)(); extern bool had_nonfatal_error; +extern std::unordered_map<LogLevel, int> message_count_by_level; std::string stringf(const char *fmt, ...); std::string vstringf(const char *fmt, va_list ap); |