[webkit-dev] Compile-time assertions for object sizes

Darin Adler darin at apple.com
Thu Sep 29 13:59:41 PDT 2011


On Sep 29, 2011, at 1:48 PM, Andreas Kling wrote:

> Right, but those keywords would pertain to the struct containing the bitfields, not InlineBox itself. Or maybe I'm misunderstanding you?

Yes, I was wrong, you are right.

I had lost the thread. I’m not sure we need to group bit fields in a struct.

I think it is practical to write the size assertions in a way that works both in 32- and 64-bit. David Levin found some good techniques that he used in SizeLimits.cpp.

    -- Darin



More information about the webkit-dev mailing list