diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-08-18 14:13:27 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-08-18 14:13:27 +0200 |
commit | a8ca33a33ad9d927a28334d8e4c45d5c40d16168 (patch) | |
tree | 6f95d361849dfb410ebf3c6724aea4d2a31c5bd5 /common/log.h | |
parent | 97520bb72833820e0d4321670ccf5a6edeea9d16 (diff) | |
download | nextpnr-a8ca33a33ad9d927a28334d8e4c45d5c40d16168.tar.gz nextpnr-a8ca33a33ad9d927a28334d8e4c45d5c40d16168.tar.bz2 nextpnr-a8ca33a33ad9d927a28334d8e4c45d5c40d16168.zip |
Add stringf() helper function
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common/log.h')
-rw-r--r-- | common/log.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/log.h b/common/log.h index 74b9f0f5..b5fddf53 100644 --- a/common/log.h +++ b/common/log.h @@ -51,6 +51,9 @@ extern bool log_quiet_warnings; extern std::string log_last_error; extern void (*log_error_atexit)(); +std::string stringf(const char *fmt, ...); +std::string vstringf(const char *fmt, va_list ap); + extern std::ostream clog; void log(const char *format, ...) NPNR_ATTRIBUTE(format(printf, 1, 2)); void log_always(const char *format, ...) NPNR_ATTRIBUTE(format(printf, 1, 2)); |