Message316059
| Author | vstinner |
|---|---|
| Recipients | paul.moore, pitrou, steve.dower, tim.golden, vstinner, zach.ware |
| Date | 2018-05-02.09:29:49 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1525253389.49.0.682650639539.issue33407@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
According to the following links, it would be possible to implement the Pc_DEPRECATED() macro for Visual Studio: https://mail.python.org/pipermail/python-dev/2018-May/153299.html https://stackoverflow.com/questions/295120/c-mark-as-deprecated/295229#295229 """ #ifdef __GNUC__ #define DEPRECATED(func) func __attribute__ ((deprecated)) #elif defined(_MSC_VER) #define DEPRECATED(func) __declspec(deprecated) func #else #pragma message("WARNING: You need to implement DEPRECATED for this compiler") #define DEPRECATED(func) func #endif """ Moreover, is Py_DEPRECATED() defined on clang which also supports the deprecated function attribute? https://clang.llvm.org/docs/AttributeReference.html#deprecated-gnu-deprecated Current Include/pyport.h code: #if defined(__GNUC__) \ && ((__GNUC__ >= 4) || (__GNUC__ == 3) && (__GNUC_MINOR__ >= 1)) #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) #else #define Py_DEPRECATED(VERSION_UNUSED) #endif |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-05-02 09:29:49 | vstinner | set | recipients: + vstinner, paul.moore, pitrou, tim.golden, zach.ware, steve.dower |
| 2018-05-02 09:29:49 | vstinner | set | messageid: <1525253389.49.0.682650639539.issue33407@psf.upfronthosting.co.za> |
| 2018-05-02 09:29:49 | vstinner | link | issue33407 messages |
| 2018-05-02 09:29:49 | vstinner | create | |