[webkit-dev] What's up with the CHECK_CONSISTENCY macro?

Benjamin Poulain benjamin at webkit.org
Fri Apr 25 15:04:34 PDT 2014

Hi Andrei,

On 4/24/14, 11:18 PM, Andrei Bucur wrote:
> I’m trying to add some line boxes sanity checks and I’ve noticed there’s
> a CHECK_CONSISTENCY macro guarding some consistency validation code (go
> figure!) but that’s never defined in WebKit/Source. Anybody has an idea
> how that macro is used?

The consistency checks in WebCore and WTF are for Debug code that is 
useful for debugging, but too slow to be enabled by default in debug builds.

You just add #define FOOBAR_CONSISTENCY 1 when needed.

 From a quick check at CHECK_CONSISTENCY, it looks like they were 
disabled a long time ago 
(https://bugs.webkit.org/show_bug.cgi?id=14981). Maybe it is dead code 


More information about the webkit-dev mailing list