OLD | NEW |
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 Loading... |
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 */ |
OLD | NEW |