diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-05-17 04:25:56 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-05-17 04:26:27 +0200 |
commit | 264ad849a4a0acf1ca392da62b7018d4fe7b66b3 (patch) | |
tree | 8748443973e9c40789710e90531ef1dff2d1e40b /src/shared/macro.h | |
parent | 45fbe937d7ca8d0da9ea276d57bc70ebd41c285e (diff) |
bus: add APIs for negotiating what is attached to messages
Diffstat (limited to 'src/shared/macro.h')
-rw-r--r-- | src/shared/macro.h | 3 |
1 files changed, 3 insertions, 0 deletions
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" |