Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(463)

Side by Side Diff: Source/wtf/unicode/Unicode.h

Issue 802203004: replace COMPILE_ASSERT with static assert in wtf/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: final fixups Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/wtf/text/TextCodec.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 George Staikos <staikos@kde.org> 2 * Copyright (C) 2006 George Staikos <staikos@kde.org>
3 * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved.
4 * Copyright (C) 2007-2009 Torch Mobile, Inc. 4 * Copyright (C) 2007-2009 Torch Mobile, Inc.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 12 matching lines...) Expand all
23 #ifndef WTF_UNICODE_H 23 #ifndef WTF_UNICODE_H
24 #define WTF_UNICODE_H 24 #define WTF_UNICODE_H
25 25
26 #include "wtf/Assertions.h" 26 #include "wtf/Assertions.h"
27 27
28 // Define platform neutral 8 bit character type (L is for Latin-1). 28 // Define platform neutral 8 bit character type (L is for Latin-1).
29 typedef unsigned char LChar; 29 typedef unsigned char LChar;
30 30
31 #include "wtf/unicode/icu/UnicodeIcu.h" 31 #include "wtf/unicode/icu/UnicodeIcu.h"
32 32
33 COMPILE_ASSERT(sizeof(UChar) == 2, UCharIsTwoBytes); 33 static_assert(sizeof(UChar) == 2, "UChar should be two bytes");
34 34
35 #endif // WTF_UNICODE_H 35 #endif // WTF_UNICODE_H
OLDNEW
« no previous file with comments | « Source/wtf/text/TextCodec.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698