1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #include "format.cc" #include <Windows.h> void DebugPrint(const char *format, fmt::ArgList args) { OutputDebugStringA(fmt::format(format, args).c_str()); } FMT_VARIADIC(void, DebugPrint, const char *) int main(int argc, char *argv[]) { DebugPrint("x={} y={}\n", 34, 55); return 0; } |