diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-02-01 04:06:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-02-01 05:40:53 +0300 |
commit | 078e012cd9711e3d9b88bdf437f31e39518315df (patch) | |
tree | 344ef2c78c3a70ae434095f8d25055ba3ba486ab /source/blender/blenlib | |
parent | 0a4e170c28cecd70e7cfb776f0c22a435ecd10e9 (diff) |
Cleanup: rename BLI_*_empty() -> clear()
Consistent with other BLI API's
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_array.h | 2 | ||||
-rw-r--r-- | source/blender/blenlib/BLI_buffer.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_array.h b/source/blender/blenlib/BLI_array.h index 3ffca818c0d..825acb18e91 100644 --- a/source/blender/blenlib/BLI_array.h +++ b/source/blender/blenlib/BLI_array.h @@ -151,7 +151,7 @@ void _bli_array_grow_func(void **arr_p, const void *arr_static, /** * resets the logical size of an array to zero, but doesn't * free the memory. */ -#define BLI_array_empty(arr) \ +#define BLI_array_clear(arr) \ { _##arr##_count = 0; } (void)0 /** diff --git a/source/blender/blenlib/BLI_buffer.h b/source/blender/blenlib/BLI_buffer.h index 0c0845daf19..0d2ef0dc9b3 100644 --- a/source/blender/blenlib/BLI_buffer.h +++ b/source/blender/blenlib/BLI_buffer.h @@ -77,7 +77,7 @@ enum { (BLI_buffer_at(buffer_, type_, (buffer_)->count - 1) = val_) \ ) -#define BLI_buffer_empty(buffer_) { \ +#define BLI_buffer_clear(buffer_) { \ (buffer_)->count = 0; \ } (void)0 |