diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-08-18 19:22:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-18 19:22:46 +0200 |
commit | 1e8e873c9fe4b0fdd69055b0251f9e71db3849c5 (patch) | |
tree | 9d5f37bc5c5f6c9442bbb92948dd1da675890211 /common/log.cc | |
parent | 060be78c09fd4416c6778a5828fb573b2a42cb2e (diff) | |
parent | a346793c19f7b14772d6620fa67d8b21cf79ae45 (diff) | |
download | nextpnr-1e8e873c9fe4b0fdd69055b0251f9e71db3849c5.tar.gz nextpnr-1e8e873c9fe4b0fdd69055b0251f9e71db3849c5.tar.bz2 nextpnr-1e8e873c9fe4b0fdd69055b0251f9e71db3849c5.zip |
Merge pull request #53 from YosysHQ/archattr
Add Attributes on arch objects and improve iCE40 gfx (IO tiles, BRAM tiles)
Diffstat (limited to 'common/log.cc')
-rw-r--r-- | common/log.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/log.cc b/common/log.cc index df5430bb..e30449ad 100644 --- a/common/log.cc +++ b/common/log.cc @@ -46,6 +46,18 @@ void (*log_error_atexit)() = NULL; // static bool next_print_log = false; static int log_newline_count = 0; +std::string stringf(const char *fmt, ...) +{ + std::string string; + va_list ap; + + va_start(ap, fmt); + string = vstringf(fmt, ap); + va_end(ap); + + return string; +} + std::string vstringf(const char *fmt, va_list ap) { std::string string; |