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

Side by Side Diff: webrtc/voice_engine/voice_engine_defines.h

Issue 1429513004: Switch usage of _DEBUG macro to NDEBUG. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: REBASE 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/system_wrappers/include/logging.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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 // ---------------------------------------------------------------------------- 129 // ----------------------------------------------------------------------------
130 // Macros 130 // Macros
131 // ---------------------------------------------------------------------------- 131 // ----------------------------------------------------------------------------
132 132
133 #define NOT_SUPPORTED(stat) \ 133 #define NOT_SUPPORTED(stat) \
134 LOG_F(LS_ERROR) << "not supported"; \ 134 LOG_F(LS_ERROR) << "not supported"; \
135 stat.SetLastError(VE_FUNC_NOT_SUPPORTED); \ 135 stat.SetLastError(VE_FUNC_NOT_SUPPORTED); \
136 return -1; 136 return -1;
137 137
138 #if (defined(_DEBUG) && defined(_WIN32) && (_MSC_VER >= 1400)) 138 #if (!defined(NDEBUG) && defined(_WIN32) && (_MSC_VER >= 1400))
139 #include <windows.h> 139 #include <windows.h>
140 #include <stdio.h> 140 #include <stdio.h>
141 #define DEBUG_PRINT(...) \ 141 #define DEBUG_PRINT(...) \
142 { \ 142 { \
143 char msg[256]; \ 143 char msg[256]; \
144 sprintf(msg, __VA_ARGS__); \ 144 sprintf(msg, __VA_ARGS__); \
145 OutputDebugStringA(msg); \ 145 OutputDebugStringA(msg); \
146 } 146 }
147 #else 147 #else
148 // special fix for visual 2003 148 // special fix for visual 2003
149 #define DEBUG_PRINT(exp) ((void)0) 149 #define DEBUG_PRINT(exp) ((void)0)
150 #endif // defined(_DEBUG) && defined(_WIN32) 150 #endif // !defined(NDEBUG) && defined(_WIN32)
151 151
152 #define CHECK_CHANNEL(channel) \ 152 #define CHECK_CHANNEL(channel) \
153 if (CheckChannel(channel) == -1) \ 153 if (CheckChannel(channel) == -1) \
154 return -1; 154 return -1;
155 155
156 // ---------------------------------------------------------------------------- 156 // ----------------------------------------------------------------------------
157 // Inline functions 157 // Inline functions
158 // ---------------------------------------------------------------------------- 158 // ----------------------------------------------------------------------------
159 159
160 namespace webrtc { 160 namespace webrtc {
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 #define __cdecl 311 #define __cdecl
312 #define LPSOCKADDR struct sockaddr * 312 #define LPSOCKADDR struct sockaddr *
313 #define LPCSTR const char * 313 #define LPCSTR const char *
314 #define ULONG unsigned long 314 #define ULONG unsigned long
315 315
316 // Default device for Mac and iPhone 316 // Default device for Mac and iPhone
317 #define WEBRTC_VOICE_ENGINE_DEFAULT_DEVICE 0 317 #define WEBRTC_VOICE_ENGINE_DEFAULT_DEVICE 0
318 #endif // #ifdef WEBRTC_MAC 318 #endif // #ifdef WEBRTC_MAC
319 319
320 #endif // WEBRTC_VOICE_ENGINE_VOICE_ENGINE_DEFINES_H 320 #endif // WEBRTC_VOICE_ENGINE_VOICE_ENGINE_DEFINES_H
OLDNEW
« no previous file with comments | « webrtc/system_wrappers/include/logging.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698