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

Side by Side Diff: webrtc/typedefs.h

Issue 2657823004: Only define NO_RETURN if undefined (Closed)
Patch Set: Created 3 years, 10 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 | « 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 (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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Macro to be used for switch-case fallthrough (required for enabling 91 // Macro to be used for switch-case fallthrough (required for enabling
92 // -Wimplicit-fallthrough warning on Clang). 92 // -Wimplicit-fallthrough warning on Clang).
93 #ifndef FALLTHROUGH 93 #ifndef FALLTHROUGH
94 #if defined(__clang__) 94 #if defined(__clang__)
95 #define FALLTHROUGH() [[clang::fallthrough]] 95 #define FALLTHROUGH() [[clang::fallthrough]]
96 #else 96 #else
97 #define FALLTHROUGH() do { } while (0) 97 #define FALLTHROUGH() do { } while (0)
98 #endif 98 #endif
99 #endif 99 #endif
100 100
101 #ifndef NO_RETURN
tommi 2017/01/27 23:21:58 Looks like NO_RETURN is only used in base/checks.*
101 // Annotate a function that will not return control flow to the caller. 102 // Annotate a function that will not return control flow to the caller.
102 #if defined(_MSC_VER) 103 #if defined(_MSC_VER)
103 #define NO_RETURN __declspec(noreturn) 104 #define NO_RETURN __declspec(noreturn)
104 #elif defined(__GNUC__) 105 #elif defined(__GNUC__)
105 #define NO_RETURN __attribute__ ((__noreturn__)) 106 #define NO_RETURN __attribute__ ((__noreturn__))
106 #else 107 #else
107 #define NO_RETURN 108 #define NO_RETURN
108 #endif 109 #endif
110 #endif
109 111
110 #endif // WEBRTC_TYPEDEFS_H_ 112 #endif // WEBRTC_TYPEDEFS_H_
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