Author: Amaury Forgeot d'Arc <[email protected]>
Branch:
Changeset: r47174:648203ec240e
Date: 2011-09-08 00:18 +0200
http://bitbucket.org/pypy/pypy/changeset/648203ec240e/
Log: Add macro PyFunction_GET_CODE
diff --git a/pypy/module/cpyext/include/funcobject.h
b/pypy/module/cpyext/include/funcobject.h
--- a/pypy/module/cpyext/include/funcobject.h
+++ b/pypy/module/cpyext/include/funcobject.h
@@ -12,6 +12,8 @@
PyObject *func_name; /* The __name__ attribute, a string object */
} PyFunctionObject;
+#define PyFunction_GET_CODE(obj) PyFunction_GetCode((PyObject*)(obj))
+
#define PyMethod_GET_FUNCTION(obj) PyMethod_Function((PyObject*)(obj))
#define PyMethod_GET_SELF(obj) PyMethod_Self((PyObject*)(obj))
#define PyMethod_GET_CLASS(obj) PyMethod_Class((PyObject*)(obj))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit