Neal Norwitz wrote: > Already done for gcc, see Py_DEPRECATED in pyport.h. Would be nice if > someone could add support on Windows. > The manner that macro is used can't be leveraged to work in the VC compiler. I admit to not having done an extensive search for the usage of Py_DEPRECATED, but to take from object.h: typedef PyObject *(*intargfunc)(PyObject *, int) Py_DEPRECATED(2.5); In GCC, you tag on __attribute__((__deprecated__)) but there is no equivalent tagging method in VC. In VC, you should instead put a pragma for the identifier: #pragma deprecated(intargfunc). AFAIK, you can't put a #pragma in a #define, so it seems wise to only mark functions deprecated (which you can do via __declspec(deprecated)). -- Scott Dial scott at scottdial.com scodial at indiana.edu
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4