Various small changes in cluster_library

This commit is contained in:
Pavlo Yatsukhnenko
2020-03-10 23:16:35 +02:00
parent 8c86568610
commit 460c8f2923
2 changed files with 23 additions and 39 deletions

View File

@@ -89,11 +89,7 @@
/* Helper to either return a bool value or add it to MULTI response */
#define CLUSTER_RETURN_BOOL(c, b) \
if(CLUSTER_IS_ATOMIC(c)) { \
if(b==1) {\
RETURN_TRUE; \
} else {\
RETURN_FALSE; \
} \
RETURN_BOOL(b); \
} else { \
add_next_index_bool(&c->multi_resp, b); \
}