Get rid of FMT_VARIADIC_VOID

This commit is contained in:
Victor Zverovich
2016-08-27 08:16:49 -07:00
parent 4ece95a754
commit 0d8aca8de3
5 changed files with 12 additions and 27 deletions
+1 -1
View File
@@ -1566,7 +1566,7 @@ TEST(StrTest, Convert) {
std::string vformat_message(int id, const char *format, fmt::format_args args) {
MemoryWriter w;
w.write("[{}] ", id);
w.write(format, args);
w.vwrite(format, args);
return w.str();
}
-11
View File
@@ -74,14 +74,3 @@ int result;
}
MAKE_TEST(test_func)
typedef char Char;
MAKE_TEST(test_variadic_void)
FMT_VARIADIC_VOID(test_variadic_void, const char *)
TEST(UtilTest, VariadicVoid) {
result = 0;
test_variadic_void("", 10, 20, 30, 40, 50, 60, 70, 80, 90, 100);
EXPECT_EQ(550, result);
}