diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-19 07:51:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-19 07:51:17 +0400 |
commit | 9a4da5a2f1adea4928d94b61c0f99b2e8a3c7c9f (patch) | |
tree | 6c3db0f3f1eb6ad8d56ca89cccf8974e3d76dc44 /source/blender/blenlib/BLI_mempool.h | |
parent | bf355362b11b3aaad50f2de881d67bad0209f51e (diff) |
utility function to get a mempool as a pointer array.
Diffstat (limited to 'source/blender/blenlib/BLI_mempool.h')
-rw-r--r-- | source/blender/blenlib/BLI_mempool.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_mempool.h b/source/blender/blenlib/BLI_mempool.h index 8fd2166e6f8..20ea89f3abf 100644 --- a/source/blender/blenlib/BLI_mempool.h +++ b/source/blender/blenlib/BLI_mempool.h @@ -86,6 +86,11 @@ __attribute__((warn_unused_result)) __attribute__((nonnull(1))) #endif ; +void BLI_mempool_as_array(BLI_mempool *pool, void **data) +#ifdef __GNUC__ +__attribute__((nonnull(1))) +#endif +; /** iteration stuff. note: this may easy to produce bugs with **/ /* private structure */ |