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

Side by Side Diff: webrtc/base/common.h

Issue 1405023016: Convert usage of ARRAY_SIZE to arraysize. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: static_cast<int> Created 5 years, 1 month 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 | « webrtc/base/bytebuffer_unittest.cc ('k') | webrtc/base/crc32.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 /* 1 /*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #ifndef strnicmp 47 #ifndef strnicmp
48 #define strnicmp(x, y, n) strncasecmp(x, y, n) 48 #define strnicmp(x, y, n) strncasecmp(x, y, n)
49 #endif 49 #endif
50 50
51 #ifndef stricmp 51 #ifndef stricmp
52 #define stricmp(x, y) strcasecmp(x, y) 52 #define stricmp(x, y) strcasecmp(x, y)
53 #endif 53 #endif
54 54
55 #endif // !defined(WEBRTC_WIN) 55 #endif // !defined(WEBRTC_WIN)
56 56
57 #define ARRAY_SIZE(x) (static_cast<int>(sizeof(x) / sizeof(x[0])))
58
59 ///////////////////////////////////////////////////////////////////////////// 57 /////////////////////////////////////////////////////////////////////////////
60 // Assertions 58 // Assertions
61 ///////////////////////////////////////////////////////////////////////////// 59 /////////////////////////////////////////////////////////////////////////////
62 60
63 #ifndef ENABLE_DEBUG 61 #ifndef ENABLE_DEBUG
64 #if !defined(NDEBUG) 62 #if !defined(NDEBUG)
65 #define ENABLE_DEBUG 1 63 #define ENABLE_DEBUG 1
66 #else 64 #else
67 #define ENABLE_DEBUG 0 65 #define ENABLE_DEBUG 0
68 #endif 66 #endif
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // libjingle are merged. 193 // libjingle are merged.
196 #if !defined(WARN_UNUSED_RESULT) 194 #if !defined(WARN_UNUSED_RESULT)
197 #if defined(__GNUC__) || defined(__clang__) 195 #if defined(__GNUC__) || defined(__clang__)
198 #define WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 196 #define WARN_UNUSED_RESULT __attribute__((warn_unused_result))
199 #else 197 #else
200 #define WARN_UNUSED_RESULT 198 #define WARN_UNUSED_RESULT
201 #endif 199 #endif
202 #endif // WARN_UNUSED_RESULT 200 #endif // WARN_UNUSED_RESULT
203 201
204 #endif // WEBRTC_BASE_COMMON_H_ // NOLINT 202 #endif // WEBRTC_BASE_COMMON_H_ // NOLINT
OLDNEW
« no previous file with comments | « webrtc/base/bytebuffer_unittest.cc ('k') | webrtc/base/crc32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698