File: py3k.h

package info (click to toggle)
python-scipy 0.18.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 75,464 kB
  • ctags: 79,406
  • sloc: python: 143,495; cpp: 89,357; fortran: 81,650; ansic: 79,778; makefile: 364; sh: 265
file content (23 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Undefine macros defined by SWIG
 */
#if PY_VERSION_HEX >= 0x03000000

#ifdef PyInt_Check
#undef PyInt_Check
#endif

static int __pyfile_check_guard(PyObject *x)
{
    return 0;
}
#define PyFile_Check(x) __pyfile_check_guard((x))
static int __pyinstance_check_guard(PyObject *x)
{
    return 0;
}
#define PyInstance_Check(x) __pyinstance_check_guard((x))

#endif

#include "numpy/npy_3kcompat.h"