diff options
author | 2016-03-01 06:45:41 +1100 | |
---|---|---|
committer | 2016-03-01 06:52:36 +1100 | |
commit | a830ea76270b7894a03922a172d58bfaefbc827f (patch) | |
tree | 01d929c08c8fa3e66285a3130004d4aa5d31e393 /src/devices/bus/isa/sc499.cpp | |
parent | b2fc583ed75b19321849fcd4fec518e2b719294b (diff) |
* Support *n conversion in stream_format/string_format
* Make stream_format return characters printed
* Add iostreams with std::vector storage
* Move to type-safe templates for logerror and popmessage
* Remove now-unnecessary I64FMT from calls to logerror/popmessage
* Put some lib/util stuff in util:: namespace
* Some fixes to Japanese translation
Diffstat (limited to 'src/devices/bus/isa/sc499.cpp')
-rw-r--r-- | src/devices/bus/isa/sc499.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/devices/bus/isa/sc499.cpp b/src/devices/bus/isa/sc499.cpp index 3d94caa2b2c..88a0272a9c1 100644 --- a/src/devices/bus/isa/sc499.cpp +++ b/src/devices/bus/isa/sc499.cpp @@ -431,12 +431,10 @@ const char *sc499_device::cpu_context() logerror - log an error message (w/o device tags) -------------------------------------------------*/ -void sc499_device::logerror(const char *format, ...) const +template <typename Format, typename... Params> +void sc499_device::logerror(Format &&fmt, Params &&... args) const { - va_list arg; - va_start(arg, format); - machine().vlogerror(format, arg); - va_end(arg); + machine().logerror(std::forward<Format>(fmt), std::forward<Params>(args)...); } /*------------------------------------------------- |