[pypy-svn] r73618 - pypy/branch/cpython-extension/pypy/module/cpyext/include
jandem at codespeak.net
jandem at codespeak.net
Sat Apr 10 15:16:42 CEST 2010
Author: jandem
Date: Sat Apr 10 15:16:40 2010
New Revision: 73618
Added:
pypy/branch/cpython-extension/pypy/module/cpyext/include/warnings.h
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/include/Python.h
Log:
Add PyErr_WarnPy3k macro
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/include/Python.h
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/include/Python.h (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/include/Python.h Sat Apr 10 15:16:40 2010
@@ -75,6 +75,7 @@
#include "object.h"
#include "pyport.h"
+#include "warnings.h"
#include <stdarg.h>
#include <stdio.h>
Added: pypy/branch/cpython-extension/pypy/module/cpyext/include/warnings.h
==============================================================================
--- (empty file)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/include/warnings.h Sat Apr 10 15:16:40 2010
@@ -0,0 +1,12 @@
+#ifndef Py_WARNINGS_H
+#define Py_WARNINGS_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define PyErr_WarnPy3k(msg, stacklevel) 0
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* !Py_WARNINGS_H */
More information about the Pypy-commit
mailing list