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

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

Issue 1410113007: Update webrtc/base/common.h after recent _DEBUG->!NDEBUG change. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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 | « no previous file | 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 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]))) 57 #define ARRAY_SIZE(x) (static_cast<int>(sizeof(x) / sizeof(x[0])))
tfarina 2015/10/31 21:35:32 Can we put this inline with the version in Chromiu
tommi 2015/10/31 21:38:28 There is a webrtc/base/arraysize.h already actuall
58 58
59 ///////////////////////////////////////////////////////////////////////////// 59 /////////////////////////////////////////////////////////////////////////////
60 // Assertions 60 // Assertions
61 ///////////////////////////////////////////////////////////////////////////// 61 /////////////////////////////////////////////////////////////////////////////
62 62
63 #ifndef ENABLE_DEBUG 63 #ifndef ENABLE_DEBUG
64 #define ENABLE_DEBUG _DEBUG 64 #if !defined(NDEBUG)
tfarina 2015/10/31 21:33:38 LGTM
65 #define ENABLE_DEBUG 1
66 #else
67 #define ENABLE_DEBUG 0
68 #endif
65 #endif // !defined(ENABLE_DEBUG) 69 #endif // !defined(ENABLE_DEBUG)
66 70
67 // Even for release builds, allow for the override of LogAssert. Though no 71 // Even for release builds, allow for the override of LogAssert. Though no
68 // macro is provided, this can still be used for explicit runtime asserts 72 // macro is provided, this can still be used for explicit runtime asserts
69 // and allow applications to override the assert behavior. 73 // and allow applications to override the assert behavior.
70 74
71 namespace rtc { 75 namespace rtc {
72 76
73 77
74 // If a debugger is attached, triggers a debugger breakpoint. If a debugger is 78 // If a debugger is attached, triggers a debugger breakpoint. If a debugger is
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // libjingle are merged. 195 // libjingle are merged.
192 #if !defined(WARN_UNUSED_RESULT) 196 #if !defined(WARN_UNUSED_RESULT)
193 #if defined(__GNUC__) || defined(__clang__) 197 #if defined(__GNUC__) || defined(__clang__)
194 #define WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 198 #define WARN_UNUSED_RESULT __attribute__((warn_unused_result))
195 #else 199 #else
196 #define WARN_UNUSED_RESULT 200 #define WARN_UNUSED_RESULT
197 #endif 201 #endif
198 #endif // WARN_UNUSED_RESULT 202 #endif // WARN_UNUSED_RESULT
199 203
200 #endif // WEBRTC_BASE_COMMON_H_ // NOLINT 204 #endif // WEBRTC_BASE_COMMON_H_ // NOLINT
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698