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

Side by Side Diff: ppapi/shared_impl/id_assignment.cc

Issue 824153003: replace COMPILE_ASSERT with static_assert in ppapi/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 5 years, 11 months 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 | « ppapi/proxy/ppapi_message_utils.h ('k') | ppapi/shared_impl/ppb_gamepad_shared.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ppapi/shared_impl/id_assignment.h" 5 #include "ppapi/shared_impl/id_assignment.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 8
9 namespace ppapi { 9 namespace ppapi {
10 10
11 const unsigned int kPPIdTypeBits = 2; 11 const unsigned int kPPIdTypeBits = 2;
12 12
13 const int32 kMaxPPId = kint32max >> kPPIdTypeBits; 13 const int32 kMaxPPId = kint32max >> kPPIdTypeBits;
14 14
15 COMPILE_ASSERT(PP_ID_TYPE_COUNT <= (1 << kPPIdTypeBits), 15 static_assert(PP_ID_TYPE_COUNT <= (1 << kPPIdTypeBits),
16 kPPIdTypeBits_is_too_small_for_all_id_types); 16 "kPPIdTypeBits is too small for all id types");
17 17
18 } // namespace ppapi 18 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_message_utils.h ('k') | ppapi/shared_impl/ppb_gamepad_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698