blob: 56c8ccc4a7148feda5f46fc071c045fa3b497e79 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#ifndef MACROS_H
#define MACROS_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__)
#define const_strlen(str) sizeof((char []){str})
#endif
|