aboutsummaryrefslogtreecommitdiff
path: root/include/log.h
blob: 5b275ccdc82e0d8fb9c1e0a90b5dfc48c1729a65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef PKGIT_LOG_H
#define PKGIT_LOG_H

// XXX: im lazy.
#define PKGIT_PREFIX_PKGIT PKGIT_PREFIX
#define LOG_FUNCTIONS                                                          \
	X(error, ERROR)                                                            \
	X(warn, WARNING)                                                           \
	X(info, INFO)                                                              \
	X(success, SUCCESS)                                                        \
	X(pkgit, PKGIT)

#endif

#define X(n, N) void log_##n(const char *format, ...);
LOG_FUNCTIONS
#undef X