Skip to content

Commit

Permalink
Move strprintf define to tinyformat.h
Browse files Browse the repository at this point in the history
This avoids a dependency on util.h if just tinyformat is needed.
  • Loading branch information
laanwj committed Aug 20, 2014
1 parent 8121258 commit 9b6d4c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core.cpp
Expand Up @@ -5,7 +5,7 @@

#include "core.h"

#include "util.h"
#include "tinyformat.h"

std::string COutPoint::ToString() const
{
Expand Down
2 changes: 2 additions & 0 deletions src/tinyformat.h
Expand Up @@ -1007,4 +1007,6 @@ TINYFORMAT_WRAP_FORMAT_N(16, returnType, funcName, funcDeclSuffix, bodyPrefix, s

} // namespace tinyformat

#define strprintf tfm::format

#endif // TINYFORMAT_H_INCLUDED
1 change: 0 additions & 1 deletion src/util.h
Expand Up @@ -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
Expand Down

0 comments on commit 9b6d4c5

Please sign in to comment.