Remove SWIG_STATIC_POINTER (Python)
It's use has been removed to discourage thread unsafe static initialisation.
This commit is contained in:
parent
40ea0a9606
commit
b3763c8dc8
1 changed files with 0 additions and 10 deletions
|
|
@ -210,16 +210,6 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi
|
|||
/* A functor is a function object with one single object argument */
|
||||
#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, (char*)"O", obj);
|
||||
|
||||
/*
|
||||
Helper for static pointer initialization for both C and C++ code, for example
|
||||
static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
|
||||
*/
|
||||
#ifdef __cplusplus
|
||||
#define SWIG_STATIC_POINTER(var) var
|
||||
#else
|
||||
#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
|
||||
#endif
|
||||
|
||||
/* -----------------------------------------------------------------------------
|
||||
* Pointer declarations
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue