Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2012-04-29 20:09:28 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2012-04-29 20:09:28 +0400
commit650edc90b103687e45dfdc383bb11c96d387ca22 (patch)
tree8423c64184e900c670cf1f00d3eb1966442472dd
parente701f9b67010279db02ceb51f7d08078cb34170a (diff)
Add GHASH_ITER macro
-rw-r--r--source/blender/blenlib/BLI_ghash.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_ghash.h b/source/blender/blenlib/BLI_ghash.h
index 457f098bff7..eaf4d442000 100644
--- a/source/blender/blenlib/BLI_ghash.h
+++ b/source/blender/blenlib/BLI_ghash.h
@@ -131,6 +131,11 @@ void BLI_ghashIterator_step (GHashIterator *ghi);
*/
int BLI_ghashIterator_isDone (GHashIterator *ghi);
+#define GHASH_ITER(gh_iter_, ghash_) \
+ for (BLI_ghashIterator_init(&gh_iter_, ghash_); \
+ !BLI_ghashIterator_isDone(&gh_iter_); \
+ BLI_ghashIterator_step(&gh_iter_))
+
/* *** */
unsigned int BLI_ghashutil_ptrhash (const void *key);