blob: 2be1d6b8d38f8afad00a4a248956ae61fec8d5a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#ifndef MACROS_H
#define MACROS_H
#define const_strlen(str) sizeof((char []){str})
#ifndef LOG_H
#include "log.h"
#define log(priority, ...) printlog(LOG_OUT_SYSLOG, priority, __VA_ARGS__)
#define log_reason(priority, msg, ...) log(priority, msg " Reason %s", __VA_ARGS__)
#endif
#endif
|