Summary: | Provide compile-time assertions for sizeof(UChar), sizeof(DeprecatedChar), etc. | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | David Kilzer (:ddkilzer) <ddkilzer> | ||||
Component: | Web Template Framework | Assignee: | Darin Adler <darin> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | ggaren | ||||
Priority: | P2 | ||||||
Version: | 523.x (Safari 3) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
David Kilzer (:ddkilzer)
2007-08-29 14:41:07 PDT
If this is possible, it would be really helpful to check sizeof all JSObject subclasses at compile time. The collector assumes a maximum size, but it's not checked at compile time. wtf/Assertions.h has COMPILE_ASSERT, so we just need to use it. Created attachment 26413 [details]
patch
Comment on attachment 26413 [details]
patch
r=me
|