diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-19 15:17:10 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-19 15:17:34 +0200 |
commit | b5c1b0907974b3c94794a75e84d6c374c3326c40 (patch) | |
tree | 46bdaaf65d844428a8959a3d8c0457024af35c51 /common/log.cc | |
parent | 3a505638a6d4d62023082d8719aa224f8d544ec0 (diff) | |
download | nextpnr-b5c1b0907974b3c94794a75e84d6c374c3326c40.tar.gz nextpnr-b5c1b0907974b3c94794a75e84d6c374c3326c40.tar.bz2 nextpnr-b5c1b0907974b3c94794a75e84d6c374c3326c40.zip |
Small gui improvements and open json functionality
Diffstat (limited to 'common/log.cc')
-rw-r--r-- | common/log.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/log.cc b/common/log.cc index cbd3c171..2868e03f 100644 --- a/common/log.cc +++ b/common/log.cc @@ -33,6 +33,7 @@ NEXTPNR_NAMESPACE_BEGIN std::vector<FILE *> log_files; std::vector<std::ostream *> log_streams; FILE *log_errfile = NULL; +log_write_type log_write_function = nullptr; bool log_error_stderr = false; bool log_cmd_error_throw = false; @@ -99,6 +100,8 @@ void logv(const char *format, va_list ap) for (auto f : log_streams) *f << str; + if (log_write_function) + log_write_function(str); } void logv_info(const char *format, va_list ap) |