From 264ad849a4a0acf1ca392da62b7018d4fe7b66b3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 17 May 2013 04:25:56 +0200 Subject: bus: add APIs for negotiating what is attached to messages --- src/shared/macro.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/shared') diff --git a/src/shared/macro.h b/src/shared/macro.h index 2f151bcc8c..bfe03f2ae0 100644 --- a/src/shared/macro.h +++ b/src/shared/macro.h @@ -284,4 +284,7 @@ do { \ sizeof(type) <= 4 ? 10 : \ sizeof(type) <= 8 ? 20 : sizeof(int[-2*(sizeof(type) > 8)]))) +#define SET_FLAG(v, flag, b) \ + (v) = (b) ? ((v) | (flag)) : ((v) & ~(flag)) + #include "log.h" -- cgit v1.2.3-54-g00ecf