region: actually act on sanity queries

This commit is contained in:
Danny Robson 2019-07-12 15:27:34 +10:00
parent 70da3ec2d4
commit 4033ec7df1

View File

@ -23,7 +23,7 @@ template <size_t S, typename T>
cruft::region<S,T>::region (extent_t _extent): cruft::region<S,T>::region (extent_t _extent):
region (point_t::origin (), _extent) region (point_t::origin (), _extent)
{ {
debug::sanity (*this); CHECK_SANITY (*this);
} }
@ -34,7 +34,7 @@ cruft::region<S,T>::region (point_t _p,
p (_p), p (_p),
e (_e) e (_e)
{ {
debug::sanity (*this); CHECK_SANITY (*this);
} }
@ -49,7 +49,7 @@ cruft::region<S,T>::region (point_t _a,
// simplifies generalisation. eg, vertical linear bezier curves. // simplifies generalisation. eg, vertical linear bezier curves.
CHECK (all (_a <= _b)); CHECK (all (_a <= _b));
debug::sanity (*this); CHECK_SANITY (*this);
} }