2
0
mirror of https://github.com/boostorg/gil.git synced 2026-02-27 05:02:19 +00:00

Replace assert() macro with BOOST_ASSERT() macro (#208)

Add #include <boost/assert.hpp> where necessary.
Apply minor clean-up near the macro replacements.

Closes #96
This commit is contained in:
Mateusz Loskot
2019-01-12 10:21:01 +01:00
committed by GitHub
parent 6e3ccc00b1
commit f578a8be9c
29 changed files with 425 additions and 397 deletions

View File

@@ -251,7 +251,7 @@ void test_packed_pixel()
rgb565_pixel_t r565;//((uint16_t)0);
rgb8_pixel_t rgb_full(255,255,255);
// Convert all channels of the unpacked pixel to the packed one & assert the packed one is full
// Convert all channels of the unpacked pixel to the packed one & ensure the packed one is full
get_color(r565,red_t()) = channel_convert<kth_element_type<rgb565_pixel_t, 0>::type>(get_color(rgb_full,red_t()));
get_color(r565,green_t()) = channel_convert<kth_element_type<rgb565_pixel_t, 1>::type>(get_color(rgb_full,green_t()));
get_color(r565,blue_t()) = channel_convert<kth_element_type<rgb565_pixel_t, 2>::type>(get_color(rgb_full,blue_t()));