BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
PyCore.h
Go to the documentation of this file.
1
// ************************************************************************************************
2
//
3
// BornAgain: simulate and fit reflection and scattering
4
//
5
//! @file Base/Py/PyCore.h
6
//! @brief Includes python header and takes care of warnings.
7
//!
8
//! @homepage http://www.bornagainproject.org
9
//! @license GNU General Public License v3 or higher (see COPYING)
10
//! @copyright Forschungszentrum Jülich GmbH 2018
11
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12
//
13
// ************************************************************************************************
14
15
#ifdef SWIG
16
#error no need to expose this header to Swig
17
#endif
18
19
#ifndef USER_API
20
#ifndef BORNAGAIN_BASE_PY_PYCORE_H
21
#define BORNAGAIN_BASE_PY_PYCORE_H
22
23
#ifdef BORNAGAIN_PYTHON
24
25
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
26
27
#undef _POSIX_C_SOURCE
28
#undef _XOPEN_SOURCE
29
30
#ifdef __GNUC__
31
#pragma GCC diagnostic push
32
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
33
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
34
#endif
35
36
#include <Python.h>
37
#define PY_ARRAY_UNIQUE_SYMBOL BORNAGAIN_PYTHONAPI_ARRAY
38
#define NO_IMPORT_ARRAY
39
#include <numpy/arrayobject.h>
40
41
#include "auto/Wrap/swig_runtime.h"
42
43
#ifdef __GNUC__
44
#pragma GCC diagnostic pop
45
#endif
46
47
#endif
// BORNAGAIN_PYTHON
48
49
#endif
// BORNAGAIN_BASE_PY_PYCORE_H
50
#endif
// USER_API
Base
Py
PyCore.h
Generated by
1.9.1