popnhax/util/log.h

15 lines
233 B
C
Raw Normal View History

2023-06-30 00:56:02 +02:00
#ifndef __LOG_H__
#define __LOG_H__
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
extern FILE *g_log_fp;
#define LOG(...) do { \
fprintf(g_log_fp, __VA_ARGS__); \
fflush(g_log_fp);\
} while (0)
#endif