Debian Codegraph @

src/Base/swigpyrun.cpp

raw
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2
3 /***************************************************************************
4 * Copyright (c) 2008 Werner Mayer <wmayer[at]users.sourceforge.net> *
5 * *
6 * This file is part of the FreeCAD CAx development system. *
7 * *
8 * This library is free software; you can redistribute it and/or *
9 * modify it under the terms of the GNU Library General Public *
10 * License as published by the Free Software Foundation; either *
11 * version 2 of the License, or (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU Library General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Library General Public *
19 * License along with this library; see the file COPYING.LIB. If not, *
20 * write to the Free Software Foundation, Inc., 59 Temple Place, *
21 * Suite 330, Boston, MA 02111-1307, USA *
22 * *
23 ***************************************************************************/
24
25
26 #include <sstream>
27 #if (defined(HAVE_SWIG) && (HAVE_SWIG == 1))
28 # if defined(__clang__)
29 # pragma clang diagnostic push
30 # pragma clang diagnostic ignored "-Wdeprecated-register"
31 # pragma clang diagnostic ignored "-Wdeprecated-declarations"
32 # elif defined(__GNUC__)
33 # pragma GCC diagnostic push
34 # pragma GCC diagnostic ignored "-Wmissing-field-initializers"
35 # pragma GCC diagnostic ignored "-Wcast-function-type"
36 # endif
37 # include "PyExport.h"
38 # include "Exception.h"
39 namespace Swig_python
40 {
41 # define SWIG_PYTHON_NO_BUILD_NONE
42 # include <swigpyrun.h>
43 # include "swigpyrun.inl"
44 } // namespace Swig_python
45 # if defined(__clang__)
46 # pragma clang diagnostic pop
47 # elif defined(__GNUC__)
48 # pragma GCC diagnostic pop
49 # endif
50 #endif // HAVE_SWIG