[libpng16] Renamed "assert" to "affirm", not affected by NDEBUG.

This commit is contained in:
Glenn Randers-Pehrson
2015-03-21 21:33:42 -05:00
parent 9f2fb72c67
commit 06963c7841
10 changed files with 70 additions and 96 deletions

View File

@@ -663,7 +663,7 @@ png_write_compressed_data_out(png_structrp png_ptr, compression_state *comp)
}
/* This is an internal error; 'next' must have been NULL! */
assert(output_len == 0);
affirm(output_len == 0);
}
#endif /* WRITE_COMPRESSED_TEXT */
@@ -1204,7 +1204,7 @@ png_write_iCCP(png_structrp png_ptr, png_const_charp name,
/* These are all internal problems: the profile should have been checked
* before when it was stored.
*/
assert(profile != NULL);
affirm(profile != NULL);
profile_len = png_get_uint_32(profile);