Reviewed by David Kilzer.
Bug 15114: Provide compile-time assertions for sizeof(UChar), sizeof(DeprecatedChar), etc.
https://bugs.webkit.org/show_bug.cgi?id=15114
* wtf/unicode/Unicode.h: Assert size of UChar. There is no DeprecatedChar any more.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@39585
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2009-01-04 Darin Adler <darin@apple.com>
+
+ Reviewed by David Kilzer.
+
+ Bug 15114: Provide compile-time assertions for sizeof(UChar), sizeof(DeprecatedChar), etc.
+ https://bugs.webkit.org/show_bug.cgi?id=15114
+
+ * wtf/unicode/Unicode.h: Assert size of UChar. There is no DeprecatedChar any more.
+
2009-01-03 Sam Weinig <sam@webkit.org>
Reviewed by Oliver Hunt.
#ifndef WTF_UNICODE_H
#define WTF_UNICODE_H
-#include <wtf/Platform.h>
+#include <wtf/Assertions.h>
#if USE(QT4_UNICODE)
#include "qt4/UnicodeQt4.h"
#error "Unknown Unicode implementation"
#endif
+COMPILE_ASSERT(sizeof(UChar) == 2, UCharIsTwoBytes);
+
#endif // WTF_UNICODE_H