mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
Macro guard loggers.
This commit is contained in:
parent
6691ca2c91
commit
1bfba2f575
@ -470,22 +470,29 @@ extern struct console_settings g_console;
|
||||
#if defined(SSNES_CONSOLE) && defined(HAVE_LOGGER)
|
||||
#include "logger_override.h"
|
||||
#else
|
||||
|
||||
#ifndef SSNES_LOG
|
||||
#define SSNES_LOG(...) do { \
|
||||
if (g_extern.verbose) \
|
||||
fprintf(stderr, "SSNES: " __VA_ARGS__); \
|
||||
fflush(stderr); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#ifndef SSNES_ERR
|
||||
#define SSNES_ERR(...) do { \
|
||||
fprintf(stderr, "SSNES [ERROR] :: " __VA_ARGS__); \
|
||||
fflush(stderr); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#ifndef SSNES_WARN
|
||||
#define SSNES_WARN(...) do { \
|
||||
fprintf(stderr, "SSNES [WARN] :: " __VA_ARGS__); \
|
||||
fflush(stderr); \
|
||||
} while (0)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef max
|
||||
#define max(a, b) ((a) > (b) ? (a) : (b))
|
||||
|
Loading…
x
Reference in New Issue
Block a user