mantaflow  0.10
A framework for fluid simulation
pythonInclude.h
Go to the documentation of this file.
1 
2 /******************************************************************************
3  *
4  * MantaFlow fluid solver framework
5  * Copyright 2011 Tobias Pfaff, Nils Thuerey
6  *
7  * This program is free software, distributed under the terms of the
8  * GNU General Public License (GPL)
9  * http://www.gnu.org/licenses
10  *
11  * Base class for particle systems
12  *
13  ******************************************************************************/
14 
15 #ifndef _PYTHONINCLUDE_H
16 #define _PYTHONINCLUDE_H
17 
18 #if defined(WIN32) || defined(_WIN32)
19 
20  // note - we have to include these first!
21  #include <string>
22  #include <vector>
23  #include <iostream>
24 
25 #endif
26 
27 // the PYTHON_DEBUG_WITH_RELEASE define enables linking with python debug libraries
28 #if (defined(_DEBUG)||(DEBUG==1)) && defined(DEBUG_PYTHON_WITH_RELEASE)
29 
30  // special handling, disable linking with debug version of python libs
31  #undef _DEBUG
32  #define NDEBUG
33  #include <Python.h>
34  #define _DEBUG
35  #undef NDEBUG
36 
37 #else
38  #include <Python.h>
39 #endif
40 
41 #if NUMPY==1
42 # define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
43 # include "numpy/arrayobject.h"
44 #endif
45 
46 #endif
47 
48