File: py3k.h

package info (click to toggle)
scikit-learn 0.11.0-2%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 13,900 kB
  • sloc: python: 34,740; ansic: 8,860; cpp: 8,849; pascal: 230; makefile: 211; sh: 14
file content (23 lines) | stat: -rw-r--r-- 395 bytes parent folder | download
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))
#include "npy_3kcompat.h"
#endif