Move strprintf define to tinyformat.h

This avoids a dependency on util.h if just tinyformat is needed.
pull/196/head
Wladimir J. van der Laan 10 years ago
parent 81212588c0
commit 9b6d4c5cdc

@ -5,7 +5,7 @@
#include "core.h"
#include "util.h"
#include "tinyformat.h"
std::string COutPoint::ToString() const
{

@ -1007,4 +1007,6 @@ TINYFORMAT_WRAP_FORMAT_N(16, returnType, funcName, funcDeclSuffix, bodyPrefix, s
} // namespace tinyformat
#define strprintf tfm::format
#endif // TINYFORMAT_H_INCLUDED

@ -108,7 +108,6 @@ bool LogAcceptCategory(const char* category);
/* Send a string to the log output */
int LogPrintStr(const std::string &str);
#define strprintf tfm::format
#define LogPrintf(...) LogPrint(NULL, __VA_ARGS__)
/* When we switch to C++11, this can be switched to variadic templates instead

Loading…
Cancel
Save