|
1 | 1 | /* ---------------------------------------------------------------------------- |
2 | 2 | * This file was automatically generated by SWIG (https://www.swig.org). |
3 | | - * Version 4.2.0 |
| 3 | + * Version 4.2.1 |
4 | 4 | * |
5 | 5 | * Do not make changes to this file unless you know what you are doing - modify |
6 | 6 | * the SWIG interface file instead. |
7 | 7 | * ----------------------------------------------------------------------------- */ |
8 | 8 |
|
9 | 9 |
|
10 | | -#define SWIG_VERSION 0x040200 |
| 10 | +#define SWIG_VERSION 0x040201 |
11 | 11 | #define SWIGPYTHON |
12 | 12 | #define SWIG_PYTHON_THREADS |
13 | 13 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
|
138 | 138 | # pragma warning disable 592 |
139 | 139 | #endif |
140 | 140 |
|
141 | | -#if __cplusplus >=201103L |
| 141 | +#if defined(__cplusplus) && __cplusplus >=201103L |
142 | 142 | # define SWIG_NULLPTR nullptr |
143 | 143 | #else |
144 | 144 | # define SWIG_NULLPTR NULL |
145 | 145 | #endif |
146 | 146 |
|
| 147 | +/* ----------------------------------------------------------------------------- |
| 148 | + * swigcompat.swg |
| 149 | + * |
| 150 | + * Macros to provide support compatibility with older C and C++ standards. |
| 151 | + * ----------------------------------------------------------------------------- */ |
147 | 152 |
|
148 | 153 | /* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF |
149 | 154 | * if you're missing it. |
|
164 | 169 | #endif |
165 | 170 |
|
166 | 171 |
|
167 | | - |
168 | 172 | #if defined(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND) |
169 | 173 | /* Workaround for '::hypot' has not been declared', see https://bugs.python.org/issue11566 */ |
170 | 174 | # include <math.h> |
@@ -3686,8 +3690,10 @@ SwigPyBuiltin_ternaryfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a, Py |
3686 | 3690 | assert(tuple); |
3687 | 3691 | Py_INCREF(b); |
3688 | 3692 | PyTuple_SET_ITEM(tuple, 0, b); |
3689 | | - Py_INCREF(c); |
3690 | | - PyTuple_SET_ITEM(tuple, 1, c); |
| 3693 | + if (c) { |
| 3694 | + Py_INCREF(c); |
| 3695 | + PyTuple_SET_ITEM(tuple, 1, c); |
| 3696 | + } |
3691 | 3697 | result = wrapper(a, tuple); |
3692 | 3698 | Py_DECREF(tuple); |
3693 | 3699 | return result; |
@@ -3802,8 +3808,10 @@ SwigPyBuiltin_ssizeobjargproc_closure(SwigPyWrapperFunction wrapper, PyObject *a |
3802 | 3808 | tuple = PyTuple_New(2); |
3803 | 3809 | assert(tuple); |
3804 | 3810 | PyTuple_SET_ITEM(tuple, 0, _PyLong_FromSsize_t(b)); |
3805 | | - Py_INCREF(c); |
3806 | | - PyTuple_SET_ITEM(tuple, 1, c); |
| 3811 | + if (c) { |
| 3812 | + Py_INCREF(c); |
| 3813 | + PyTuple_SET_ITEM(tuple, 1, c); |
| 3814 | + } |
3807 | 3815 | resultobj = wrapper(a, tuple); |
3808 | 3816 | result = resultobj ? 0 : -1; |
3809 | 3817 | Py_XDECREF(resultobj); |
@@ -4244,7 +4252,7 @@ static void _set_python_exception() { |
4244 | 4252 |
|
4245 | 4253 |
|
4246 | 4254 |
|
4247 | | - /*@SWIG:/usr/local/share/swig/4.2.0/typemaps/exception.swg,59,SWIG_CATCH_STDEXCEPT@*/ /* catching std::exception */ |
| 4255 | + /*@SWIG:/usr/local/share/swig/4.2.1/typemaps/exception.swg,59,SWIG_CATCH_STDEXCEPT@*/ /* catching std::exception */ |
4248 | 4256 | catch (std::invalid_argument& e) { |
4249 | 4257 | SWIG_exception_fail(SWIG_ValueError, e.what() ); |
4250 | 4258 | } catch (std::domain_error& e) { |
|
0 commit comments