diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-07-15 11:23:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-07-15 11:29:01 +0300 |
commit | 8e8a6b80cf2749d176d14eaa3bbfd0eccc9ec75e (patch) | |
tree | 7448ea0f5b8ab12f90d6d3201eab05f3618f674d /source/blender/imbuf/intern | |
parent | a63a0ee24bf05346399a16f42d92747e1cf6a815 (diff) |
Cleanup: replace BLI_assert(!"text") with BLI_assert_msg(0, "text")
This shows the text as part of the assertion message.
Diffstat (limited to 'source/blender/imbuf/intern')
-rw-r--r-- | source/blender/imbuf/intern/colormanagement.c | 4 | ||||
-rw-r--r-- | source/blender/imbuf/intern/indexer.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/imbuf/intern/colormanagement.c b/source/blender/imbuf/intern/colormanagement.c index 71e513fb405..2cc44ebc67b 100644 --- a/source/blender/imbuf/intern/colormanagement.c +++ b/source/blender/imbuf/intern/colormanagement.c @@ -1542,7 +1542,7 @@ static void display_buffer_apply_get_linear_buffer(DisplayBufferThread *handle, rgba_uchar_to_float(fp, cp); } else { - BLI_assert(!"Buffers of 3 or 4 channels are only supported here"); + BLI_assert_msg(0, "Buffers of 3 or 4 channels are only supported here"); } } @@ -3437,7 +3437,7 @@ static void partial_buffer_update_rect(ImBuf *ibuf, pixel[0] = linear_buffer[linear_index]; } else { - BLI_assert(!"Unsupported number of channels in partial buffer update"); + BLI_assert_msg(0, "Unsupported number of channels in partial buffer update"); } } else if (byte_buffer) { diff --git a/source/blender/imbuf/intern/indexer.c b/source/blender/imbuf/intern/indexer.c index 71137a408d2..27195b294d6 100644 --- a/source/blender/imbuf/intern/indexer.c +++ b/source/blender/imbuf/intern/indexer.c @@ -357,7 +357,7 @@ int IMB_proxy_size_to_array_index(IMB_Proxy_Size pr_size) case IMB_PROXY_100: return 3; default: - BLI_assert(!"Unhandled proxy size enum!"); + BLI_assert_msg(0, "Unhandled proxy size enum!"); return -1; } } @@ -376,7 +376,7 @@ int IMB_timecode_to_array_index(IMB_Timecode_Type tc) case IMB_TC_RECORD_RUN_NO_GAPS: return 3; default: - BLI_assert(!"Unhandled timecode type enum!"); + BLI_assert_msg(0, "Unhandled timecode type enum!"); return -1; } } |