BLI_array_reserve from bmesh.

This commit is contained in:
Campbell Barton
2012-01-23 19:42:22 +00:00
parent be0be0b1a9
commit 99dc4ec691

View File

@@ -140,6 +140,10 @@
(&arr[_##arr##_count - 1]) \
)
#define BLI_array_reserve(arr, num) \
BLI_array_growitems(arr, num), (void)(_##arr##_count -= num)
#define BLI_array_free(arr) \
if (arr && (char *)arr != _##arr##_static) { \
BLI_array_fake_user(arr); \