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 28 matching lines...) Expand all Loading... |
39 | 39 |
40 /* COMPILER(CLANG) - Clang */ | 40 /* COMPILER(CLANG) - Clang */ |
41 #if defined(__clang__) | 41 #if defined(__clang__) |
42 #define WTF_COMPILER_CLANG 1 | 42 #define WTF_COMPILER_CLANG 1 |
43 | 43 |
44 #define CLANG_PRAGMA(PRAGMA) _Pragma(PRAGMA) | 44 #define CLANG_PRAGMA(PRAGMA) _Pragma(PRAGMA) |
45 | 45 |
46 /* Specific compiler features */ | 46 /* Specific compiler features */ |
47 | 47 |
48 #define WTF_COMPILER_SUPPORTS_CXX_EXPLICIT_CONVERSIONS __has_feature(cxx_explici
t_conversions) | 48 #define WTF_COMPILER_SUPPORTS_CXX_EXPLICIT_CONVERSIONS __has_feature(cxx_explici
t_conversions) |
49 #define WTF_COMPILER_SUPPORTS_BLOCKS __has_feature(blocks) | |
50 #define WTF_COMPILER_SUPPORTS_HAS_TRIVIAL_DESTRUCTOR __has_extension(has_trivial
_destructor) | |
51 | 49 |
52 #endif | 50 #endif |
53 | 51 |
54 #ifndef CLANG_PRAGMA | 52 #ifndef CLANG_PRAGMA |
55 #define CLANG_PRAGMA(PRAGMA) | 53 #define CLANG_PRAGMA(PRAGMA) |
56 #endif | 54 #endif |
57 | 55 |
58 /* COMPILER(MSVC) - Microsoft Visual C++ */ | 56 /* COMPILER(MSVC) - Microsoft Visual C++ */ |
59 #if defined(_MSC_VER) | 57 #if defined(_MSC_VER) |
60 #define WTF_COMPILER_MSVC 1 | 58 #define WTF_COMPILER_MSVC 1 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 #define WTF_COMPILER_SUPPORTS_PRETTY_FUNCTION 1 | 178 #define WTF_COMPILER_SUPPORTS_PRETTY_FUNCTION 1 |
181 #define WTF_PRETTY_FUNCTION __PRETTY_FUNCTION__ | 179 #define WTF_PRETTY_FUNCTION __PRETTY_FUNCTION__ |
182 #elif COMPILER(MSVC) | 180 #elif COMPILER(MSVC) |
183 #define WTF_COMPILER_SUPPORTS_PRETTY_FUNCTION 1 | 181 #define WTF_COMPILER_SUPPORTS_PRETTY_FUNCTION 1 |
184 #define WTF_PRETTY_FUNCTION __FUNCSIG__ | 182 #define WTF_PRETTY_FUNCTION __FUNCSIG__ |
185 #else | 183 #else |
186 #define WTF_PRETTY_FUNCTION __FUNCTION__ | 184 #define WTF_PRETTY_FUNCTION __FUNCTION__ |
187 #endif | 185 #endif |
188 | 186 |
189 #endif /* WTF_Compiler_h */ | 187 #endif /* WTF_Compiler_h */ |
OLD | NEW |