mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +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)
|
#if defined(SSNES_CONSOLE) && defined(HAVE_LOGGER)
|
||||||
#include "logger_override.h"
|
#include "logger_override.h"
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#ifndef SSNES_LOG
|
||||||
#define SSNES_LOG(...) do { \
|
#define SSNES_LOG(...) do { \
|
||||||
if (g_extern.verbose) \
|
if (g_extern.verbose) \
|
||||||
fprintf(stderr, "SSNES: " __VA_ARGS__); \
|
fprintf(stderr, "SSNES: " __VA_ARGS__); \
|
||||||
fflush(stderr); \
|
fflush(stderr); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SSNES_ERR
|
||||||
#define SSNES_ERR(...) do { \
|
#define SSNES_ERR(...) do { \
|
||||||
fprintf(stderr, "SSNES [ERROR] :: " __VA_ARGS__); \
|
fprintf(stderr, "SSNES [ERROR] :: " __VA_ARGS__); \
|
||||||
fflush(stderr); \
|
fflush(stderr); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef SSNES_WARN
|
||||||
#define SSNES_WARN(...) do { \
|
#define SSNES_WARN(...) do { \
|
||||||
fprintf(stderr, "SSNES [WARN] :: " __VA_ARGS__); \
|
fprintf(stderr, "SSNES [WARN] :: " __VA_ARGS__); \
|
||||||
fflush(stderr); \
|
fflush(stderr); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef max
|
#ifndef max
|
||||||
#define max(a, b) ((a) > (b) ? (a) : (b))
|
#define max(a, b) ((a) > (b) ? (a) : (b))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user