mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-19 00:41:53 +00:00
15ad74fdad
Signed-off-by: Saggi Mizrahi <ficoos@gmail.com>
7 lines
381 B
C
7 lines
381 B
C
#include <stdio.h>
|
|
|
|
#define LOG(stream, level, msg, ...) fprintf(stream, "%s::%s+%d::", level, __FILE__, __LINE__); fprintf(stream, msg, ##__VA_ARGS__); fprintf(stream, "\n")
|
|
#define LOG_DEBUG(msg, ...) LOG(stderr, "DEBUG", msg, ##__VA_ARGS__)
|
|
#define LOG_WARN(msg, ...) LOG(stderr, "WARNING", msg, ##__VA_ARGS__)
|
|
#define LOG_INFO(msg, ...) LOG(stdout, "INFO", msg, ##__VA_ARGS__)
|