Get rid of FMT_VARIADIC_VOID
This commit is contained in:
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user