diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-06-26 18:31:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-06-26 18:31:50 +0400 |
commit | 974d2dc54aaed4f210ecd603737170187f9a0151 (patch) | |
tree | d55eef27514de6e97f276ee2cddf20f08fa1e51e /source/blender/blenlib/BLI_array.h | |
parent | 898667b49711a5bf03166810b76fab33ebeecb00 (diff) |
BLI_array: avoid accidental assignment to BLI_array_count
Diffstat (limited to 'source/blender/blenlib/BLI_array.h')
-rw-r--r-- | source/blender/blenlib/BLI_array.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_array.h b/source/blender/blenlib/BLI_array.h index 4e2cfe09219..f8e23629429 100644 --- a/source/blender/blenlib/BLI_array.h +++ b/source/blender/blenlib/BLI_array.h @@ -78,7 +78,7 @@ void _bli_array_grow_func(void **arr_p, const void *arr_static, char _##arr##_static[maxstatic * sizeof(*(arr))] /* this returns the logical size of the array, not including buffering. */ -#define BLI_array_count(arr) _##arr##_count +#define BLI_array_count(arr) ((void)0, _##arr##_count) /* Grow the array by a fixed number of items. * |