summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/fileio.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-03-09 18:02:13 +1100
committer Vas Crabb <vas@vastheman.com>2016-03-09 23:04:12 +1100
commit5aea0893a03648efe27025f88d6b98cd48129869 (patch)
treea60611742f99e96efd2bf0106a8aac1356fbdaad /src/emu/fileio.h
parent262fc7035a2f5328b97adea11cae1a7d58cd8653 (diff)
Use type-safe printf for core_file and emu_file, surprisingly few knock-on effects
Properly fix up a couple of places I64FMT was being used, still more to deal with
Diffstat (limited to 'src/emu/fileio.h')
-rw-r--r--src/emu/fileio.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/emu/fileio.h b/src/emu/fileio.h
index 9a65349614f..22f36f5362e 100644
--- a/src/emu/fileio.h
+++ b/src/emu/fileio.h
@@ -135,8 +135,11 @@ public:
// writing
UINT32 write(const void *buffer, UINT32 length);
int puts(const char *s);
- int vprintf(const char *fmt, va_list va);
- int printf(const char *fmt, ...) ATTR_PRINTF(2,3);
+ int vprintf(util::format_argument_pack<std::ostream> const &args);
+ template <typename Format, typename... Params> int printf(Format &&fmt, Params &&...args)
+ {
+ return vprintf(util::make_format_argument_pack(std::forward<Format>(fmt), std::forward<Params>(args)...));
+ }
// buffers
void flush();