call ccprintf() with the appropriate argument types so we don't recuse forever
--HG-- extra : convert_revision : 5366be897d1193cf9e93b1fcd0689d19783f73a8
This commit is contained in:
parent
8d38dd3231
commit
74db8adfbc
1 changed files with 3 additions and 3 deletions
|
@ -143,20 +143,20 @@ ccprintf(std::ostream &stream, const std::string &format,
|
|||
inline void
|
||||
ccprintf(std::ostream &stream, const std::string &format, CPRINTF_DECLARATION)
|
||||
{
|
||||
ccprintf(stream, format, VARARGS_ALLARGS);
|
||||
ccprintf(stream, format.c_str(), VARARGS_ALLARGS);
|
||||
}
|
||||
|
||||
inline void
|
||||
cprintf(const std::string &format, CPRINTF_DECLARATION)
|
||||
{
|
||||
ccprintf(std::cout, format, VARARGS_ALLARGS);
|
||||
ccprintf(std::cout, format.c_str(), VARARGS_ALLARGS);
|
||||
}
|
||||
|
||||
inline std::string
|
||||
csprintf(const std::string &format, CPRINTF_DECLARATION)
|
||||
{
|
||||
std::stringstream stream;
|
||||
ccprintf(stream, format, VARARGS_ALLARGS);
|
||||
ccprintf(stream, format.c_str(), VARARGS_ALLARGS);
|
||||
return stream.str();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue