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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 #endif | 120 #endif |
121 | 121 |
122 /* ALLOW_UNUSED */ | 122 /* ALLOW_UNUSED */ |
123 | 123 |
124 #if COMPILER(GCC) | 124 #if COMPILER(GCC) |
125 #define ALLOW_UNUSED __attribute__((unused)) | 125 #define ALLOW_UNUSED __attribute__((unused)) |
126 #else | 126 #else |
127 #define ALLOW_UNUSED | 127 #define ALLOW_UNUSED |
128 #endif | 128 #endif |
129 | 129 |
130 /* FIXME: Convert all instance of FINAL to final */ | |
131 #define FINAL final | |
132 | 130 |
133 /* REFERENCED_FROM_ASM */ | 131 /* REFERENCED_FROM_ASM */ |
134 | 132 |
135 #ifndef REFERENCED_FROM_ASM | 133 #ifndef REFERENCED_FROM_ASM |
136 #if COMPILER(GCC) | 134 #if COMPILER(GCC) |
137 #define REFERENCED_FROM_ASM __attribute__((used)) | 135 #define REFERENCED_FROM_ASM __attribute__((used)) |
138 #else | 136 #else |
139 #define REFERENCED_FROM_ASM | 137 #define REFERENCED_FROM_ASM |
140 #endif | 138 #endif |
141 #endif | 139 #endif |
142 | 140 |
143 /* WTF_PRETTY_FUNCTION */ | 141 /* WTF_PRETTY_FUNCTION */ |
144 | 142 |
145 #if COMPILER(GCC) | 143 #if COMPILER(GCC) |
146 #define WTF_PRETTY_FUNCTION __PRETTY_FUNCTION__ | 144 #define WTF_PRETTY_FUNCTION __PRETTY_FUNCTION__ |
147 #else | 145 #else |
148 #define WTF_PRETTY_FUNCTION __FUNCTION__ | 146 #define WTF_PRETTY_FUNCTION __FUNCTION__ |
149 #endif | 147 #endif |
150 | 148 |
151 #endif /* WTF_Compiler_h */ | 149 #endif /* WTF_Compiler_h */ |
OLD | NEW |