Cleanup: replace BLI_assert(!"text") with BLI_assert_msg(0, "text")

This shows the text as part of the assertion message.
This commit is contained in:
2021-07-15 18:23:28 +10:00
parent a63a0ee24b
commit 8e8a6b80cf
133 changed files with 217 additions and 209 deletions

View File

@@ -1778,7 +1778,7 @@ static bool do_add_image_extension(char *string,
}
}
else {
BLI_assert(!"Unsupported jp2 codec was specified in im_format->jp2_codec");
BLI_assert_msg(0, "Unsupported jp2 codec was specified in im_format->jp2_codec");
}
}
else {
@@ -1949,7 +1949,7 @@ void BKE_imbuf_to_image_format(struct ImageFormatData *im_format, const ImBuf *i
im_format->jp2_codec = R_IMF_JP2_CODEC_J2K;
}
else {
BLI_assert(!"Unsupported jp2 codec was specified in file type");
BLI_assert_msg(0, "Unsupported jp2 codec was specified in file type");
}
}
#endif
@@ -3017,7 +3017,7 @@ void BKE_imbuf_write_prepare(ImBuf *ibuf, const ImageFormatData *imf)
ibuf->foptions.flag |= JP2_J2K;
}
else {
BLI_assert(!"Unsupported jp2 codec was specified in im_format->jp2_codec");
BLI_assert_msg(0, "Unsupported jp2 codec was specified in im_format->jp2_codec");
}
}
#endif