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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user