diff options
Diffstat (limited to 'source/blender/blenlib/BLI_mempool.h')
-rw-r--r-- | source/blender/blenlib/BLI_mempool.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_mempool.h b/source/blender/blenlib/BLI_mempool.h index 8fd2166e6f8..a1cbad73239 100644 --- a/source/blender/blenlib/BLI_mempool.h +++ b/source/blender/blenlib/BLI_mempool.h @@ -86,6 +86,18 @@ __attribute__((warn_unused_result)) __attribute__((nonnull(1))) #endif ; +void BLI_mempool_as_array(BLI_mempool *pool, void **data) +#ifdef __GNUC__ +__attribute__((nonnull(1))) +#endif +; + +void *BLI_mempool_as_arrayN(BLI_mempool *pool, const char *allocstr) +#ifdef __GNUC__ +__attribute__((warn_unused_result)) +__attribute__((nonnull(1, 2))) +#endif +; /** iteration stuff. note: this may easy to produce bugs with **/ /* private structure */ |