1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-17 21:35:45 +02:00

bees: introduce BEESLOGNOTE macro

Quite often we have the same message in BEESLOG and BEESNOTE, so
make a macro to combine them.
This commit is contained in:
Zygo Blaxell 2016-12-02 00:03:56 -05:00
parent ea0910ee6c
commit d58de9b76d

View File

@ -136,6 +136,8 @@ const int FLAGS_OPEN_FANOTIFY = O_RDWR | O_NOATIME | O_CLOEXEC | O_LARGEFILE;
} \
} while (0)
#define BEESLOGNOTE(x) BEESLOG(x); BEESNOTE(x)
#define BEESCOUNT(stat) do { \
BeesStats::s_global.add_count(#stat); \
} while (0)