Skip to content

Commit

Permalink
CELIX-380: Fix for PROPERTIES_FOR_EACH macro
Browse files Browse the repository at this point in the history
  • Loading branch information
ErjanAltena committed Oct 10, 2016
1 parent fc96bc5 commit 7ab8b6b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions framework/public/include/properties.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ FRAMEWORK_EXPORT void properties_set(properties_pt properties, const char* key,

FRAMEWORK_EXPORT celix_status_t properties_copy(properties_pt properties, properties_pt *copy);


#define PROPERTIES_FOR_EACH(props, key) \
for(hash_map_iterator_t iter = hashMapIterator_construct((props)); \
hashMapIterator_hasNext(&iter); \
(key) = (const char*)hashMapIterator_nextKey(&iter))
for(hash_map_iterator_t iter = hashMapIterator_construct(props); \
hashMapIterator_hasNext(&iter), (key) = (const char*)hashMapIterator_nextKey(&iter);)

#endif /* PROPERTIES_H_ */

0 comments on commit 7ab8b6b

Please sign in to comment.