[pypy-commit] pypy default: cpyext: add PyThreadState_GET as an alias to PyThreadState_Get.

amauryfa noreply at buildbot.pypy.org
Tue Feb 14 22:41:45 CET 2012


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r52483:418883fe233e
Date: 2012-02-14 21:40 +0100
http://bitbucket.org/pypy/pypy/changeset/418883fe233e/

Log:	cpyext: add PyThreadState_GET as an alias to PyThreadState_Get.

diff --git a/pypy/module/cpyext/include/pystate.h b/pypy/module/cpyext/include/pystate.h
--- a/pypy/module/cpyext/include/pystate.h
+++ b/pypy/module/cpyext/include/pystate.h
@@ -24,4 +24,6 @@
     enum {PyGILState_LOCKED, PyGILState_UNLOCKED}
         PyGILState_STATE;
 
+#define PyThreadState_GET() PyThreadState_Get()
+
 #endif /* !Py_PYSTATE_H */


More information about the pypy-commit mailing list