From 0bae2662f455c2866ce769fdc73b3068f8239bd0 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Sat, 3 Oct 2020 16:01:59 +0200 Subject: Cleanup: Remove/replace C standard library assert() and header usages We have our own assert implementation, `BLI_assert()` that is prefered over the C standard library one. Its output is more consistent across compilers and makes termination on assert failure optional (through `WITH_ASSERT_ABORT`). In many places we'd include the C library header without ever accessing it. --- source/blender/blenlib/intern/buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenlib/intern/buffer.c') diff --git a/source/blender/blenlib/intern/buffer.c b/source/blender/blenlib/intern/buffer.c index fb4350501cd..bac4786a2e9 100644 --- a/source/blender/blenlib/intern/buffer.c +++ b/source/blender/blenlib/intern/buffer.c @@ -30,8 +30,8 @@ * BLI_buffer_declare_static(int, my_int_array, BLI_BUFFER_NOP, 32); * * BLI_buffer_append(my_int_array, int, 42); - * assert(my_int_array.count == 1); - * assert(BLI_buffer_at(my_int_array, int, 0) == 42); + * BLI_assert(my_int_array.count == 1); + * BLI_assert(BLI_buffer_at(my_int_array, int, 0) == 42); * * BLI_buffer_free(&my_int_array); * \endcode -- cgit v1.2.3