aboutsummaryrefslogtreecommitdiff
path: root/src/log.h
blob: 113141b1ef366d134e09619bfea7d77afebfc24c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef LOG_H
#define LOG_H 1

#ifdef DEBUG
#define logs_dbg(fmt, ...) logs(fmt, __VA_ARGS__)
#else
#define logs_dbg(fmt, ...)
#endif

int log_init(char* file);

void log_free(void);

int logs(char* format, ...);

#endif