File: py3k.h

package info (click to toggle)
python-scipy 0.10.1%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 42,232 kB
  • sloc: cpp: 224,773; ansic: 103,496; python: 85,210; fortran: 79,130; makefile: 272; sh: 43
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"