STINNER Victor added the comment:

noinline_msvs.patch: implement _Py_NO_INLINE for Microsoft Visual Studio

#elif defined(_MSC_VER)
#  define _Py_NO_INLINE __declspec(noinline)

I didn't push this change because I don't have access to a Windows VM yet.

@Steve: Does noinline_msvs.patch look good to you?

I decided to make the macro private because I don't know if _Py_NO_INLINE can 
be combined with PyAPI_FUNC() which also uses __declspec(): 
__declspec(dllexport).

Is it possible to use __declspec() multiple times per function declaration?

----------
keywords: +patch
nosy: +steve.dower
Added file: http://bugs.python.org/file46248/noinline_msvs.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29234>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to