|
|
|||
File indexing completed on 2026-05-10 08:43:01
0001 /*===-- llvm-c/Deprecated.h - Deprecation macro -------------------*- C -*-===*\ 0002 |* *| 0003 |* Part of the LLVM Project, under the Apache License v2.0 with LLVM *| 0004 |* Exceptions. *| 0005 |* See https://llvm.org/LICENSE.txt for license information. *| 0006 |* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *| 0007 |* *| 0008 |*===----------------------------------------------------------------------===*| 0009 |* *| 0010 |* This header declares LLVM_ATTRIBUTE_C_DEPRECATED() macro, which can be *| 0011 |* used to deprecate functions in the C interface. *| 0012 |* *| 0013 \*===----------------------------------------------------------------------===*/ 0014 0015 #ifndef LLVM_C_DEPRECATED_H 0016 #define LLVM_C_DEPRECATED_H 0017 0018 #ifndef __has_feature 0019 # define __has_feature(x) 0 0020 #endif 0021 0022 // This is a variant of LLVM_ATTRIBUTE_DEPRECATED() that is compatible with 0023 // C compilers. 0024 #if __has_feature(attribute_deprecated_with_message) 0025 # define LLVM_ATTRIBUTE_C_DEPRECATED(decl, message) \ 0026 decl __attribute__((deprecated(message))) 0027 #elif defined(__GNUC__) 0028 # define LLVM_ATTRIBUTE_C_DEPRECATED(decl, message) \ 0029 decl __attribute__((deprecated)) 0030 #elif defined(_MSC_VER) 0031 # define LLVM_ATTRIBUTE_C_DEPRECATED(decl, message) \ 0032 __declspec(deprecated(message)) decl 0033 #else 0034 # define LLVM_ATTRIBUTE_C_DEPRECATED(decl, message) \ 0035 decl 0036 #endif 0037 0038 #endif /* LLVM_C_DEPRECATED_H */
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|