diff options
Diffstat (limited to 'src/emu/logmacro.h')
-rw-r--r-- | src/emu/logmacro.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/logmacro.h b/src/emu/logmacro.h index 0f7860aec57..5d19040c794 100644 --- a/src/emu/logmacro.h +++ b/src/emu/logmacro.h @@ -10,8 +10,12 @@ #endif #ifndef LOG_OUTPUT_FUNC +#ifdef LOG_OUTPUT_STREAM +#define LOG_OUTPUT_FUNC [] (auto &&... args) { util::stream_format((LOG_OUTPUT_STREAM), std::forward<decltype(args)>(args)...); } +#else #define LOG_OUTPUT_FUNC logerror #endif +#endif #ifndef LOG_GENERAL #define LOG_GENERAL (1U << 0) |