mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-04 10:07:27 -05:00
Move strprintf define to tinyformat.h
This avoids a dependency on util.h if just tinyformat is needed.
This commit is contained in:
parent
81212588c0
commit
9b6d4c5cdc
3 changed files with 3 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
#include "core.h"
|
#include "core.h"
|
||||||
|
|
||||||
#include "util.h"
|
#include "tinyformat.h"
|
||||||
|
|
||||||
std::string COutPoint::ToString() const
|
std::string COutPoint::ToString() const
|
||||||
{
|
{
|
||||||
|
|
|
@ -1007,4 +1007,6 @@ TINYFORMAT_WRAP_FORMAT_N(16, returnType, funcName, funcDeclSuffix, bodyPrefix, s
|
||||||
|
|
||||||
} // namespace tinyformat
|
} // namespace tinyformat
|
||||||
|
|
||||||
|
#define strprintf tfm::format
|
||||||
|
|
||||||
#endif // TINYFORMAT_H_INCLUDED
|
#endif // TINYFORMAT_H_INCLUDED
|
||||||
|
|
|
@ -108,7 +108,6 @@ bool LogAcceptCategory(const char* category);
|
||||||
/* Send a string to the log output */
|
/* Send a string to the log output */
|
||||||
int LogPrintStr(const std::string &str);
|
int LogPrintStr(const std::string &str);
|
||||||
|
|
||||||
#define strprintf tfm::format
|
|
||||||
#define LogPrintf(...) LogPrint(NULL, __VA_ARGS__)
|
#define LogPrintf(...) LogPrint(NULL, __VA_ARGS__)
|
||||||
|
|
||||||
/* When we switch to C++11, this can be switched to variadic templates instead
|
/* When we switch to C++11, this can be switched to variadic templates instead
|
||||||
|
|
Loading…
Add table
Reference in a new issue