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

Side by Side Diff: third_party/WebKit/Source/wtf/Compiler.h

Issue 2161193003: Use __func__ instead of __FUNCTION__. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 4 years, 4 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 | « third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp ('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) 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 #endif 140 #endif
141 141
142 142
143 /* WTF_PRETTY_FUNCTION */ 143 /* WTF_PRETTY_FUNCTION */
144 144
145 #if COMPILER(GCC) 145 #if COMPILER(GCC)
146 #define WTF_PRETTY_FUNCTION __PRETTY_FUNCTION__ 146 #define WTF_PRETTY_FUNCTION __PRETTY_FUNCTION__
147 #elif COMPILER(MSVC) 147 #elif COMPILER(MSVC)
148 #define WTF_PRETTY_FUNCTION __FUNCSIG__ 148 #define WTF_PRETTY_FUNCTION __FUNCSIG__
149 #else 149 #else
150 #define WTF_PRETTY_FUNCTION __FUNCTION__ 150 #define WTF_PRETTY_FUNCTION __func__
151 #endif 151 #endif
152 152
153 /* NO_SANITIZE_UNRELATED_CAST - Disable runtime checks related to casts between 153 /* NO_SANITIZE_UNRELATED_CAST - Disable runtime checks related to casts between
154 * unrelated objects (-fsanitize=cfi-unrelated-cast or -fsanitize=vptr). */ 154 * unrelated objects (-fsanitize=cfi-unrelated-cast or -fsanitize=vptr). */
155 155
156 #if COMPILER(CLANG) 156 #if COMPILER(CLANG)
157 #define NO_SANITIZE_UNRELATED_CAST __attribute__((no_sanitize("cfi-unrelated-cas t", "vptr"))) 157 #define NO_SANITIZE_UNRELATED_CAST __attribute__((no_sanitize("cfi-unrelated-cas t", "vptr")))
158 #else 158 #else
159 #define NO_SANITIZE_UNRELATED_CAST 159 #define NO_SANITIZE_UNRELATED_CAST
160 #endif 160 #endif
161 161
162 /* WTF_NON_EXPORTED_BASE; similar NON_EXPORTED_BASE in base/compiler_specific.h */ 162 /* WTF_NON_EXPORTED_BASE; similar NON_EXPORTED_BASE in base/compiler_specific.h */
163 163
164 #if COMPILER(MSVC) 164 #if COMPILER(MSVC)
165 #define WTF_NON_EXPORTED_BASE(code) __pragma(warning(suppress:4275)) code 165 #define WTF_NON_EXPORTED_BASE(code) __pragma(warning(suppress:4275)) code
166 #else 166 #else
167 #define WTF_NON_EXPORTED_BASE(code) code 167 #define WTF_NON_EXPORTED_BASE(code) code
168 #endif 168 #endif
169 169
170 #endif /* WTF_Compiler_h */ 170 #endif /* WTF_Compiler_h */
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698