Revision f230a1cf deps/v8/include/v8config.h
deps/v8/include/v8config.h | ||
---|---|---|
245 | 245 |
// older compilers. |
246 | 246 |
# define V8_HAS_ATTRIBUTE_ALWAYS_INLINE (V8_GNUC_PREREQ(4, 4, 0)) |
247 | 247 |
# define V8_HAS_ATTRIBUTE_DEPRECATED (V8_GNUC_PREREQ(3, 4, 0)) |
248 |
# define V8_HAS_ATTRIBUTE_DEPRECATED_MESSAGE (V8_GNUC_PREREQ(4, 5, 0)) |
|
248 | 249 |
# define V8_HAS_ATTRIBUTE_NOINLINE (V8_GNUC_PREREQ(3, 4, 0)) |
249 | 250 |
# define V8_HAS_ATTRIBUTE_VISIBILITY (V8_GNUC_PREREQ(4, 3, 0)) |
250 | 251 |
# define V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT \ |
... | ... | |
320 | 321 |
|
321 | 322 |
|
322 | 323 |
// A macro to mark classes or functions as deprecated. |
323 |
#if !V8_DISABLE_DEPRECATIONS && V8_HAS_ATTRIBUTE_DEPRECATED |
|
324 |
# define V8_DEPRECATED(declarator) declarator __attribute__((deprecated)) |
|
325 |
#elif !V8_DISABLE_DEPRECATIONS && V8_HAS_DECLSPEC_DEPRECATED |
|
326 |
# define V8_DEPRECATED(declarator) __declspec(deprecated) declarator |
|
324 |
#if defined(V8_DEPRECATION_WARNINGS) && V8_HAS_ATTRIBUTE_DEPRECATED_MESSAGE |
|
325 |
# define V8_DEPRECATED(message, declarator) \ |
|
326 |
declarator __attribute__((deprecated(message))) |
|
327 |
#elif defined(V8_DEPRECATION_WARNINGS) && V8_HAS_ATTRIBUTE_DEPRECATED |
|
328 |
# define V8_DEPRECATED(message, declarator) \ |
|
329 |
declarator __attribute__((deprecated)) |
|
330 |
#elif defined(V8_DEPRECATION_WARNINGS) && V8_HAS_DECLSPEC_DEPRECATED |
|
331 |
# define V8_DEPRECATED(message, declarator) __declspec(deprecated) declarator |
|
327 | 332 |
#else |
328 |
# define V8_DEPRECATED(declarator) declarator |
|
333 |
# define V8_DEPRECATED(message, declarator) declarator
|
|
329 | 334 |
#endif |
330 | 335 |
|
331 | 336 |
|
Also available in: Unified diff