diff options
Diffstat (limited to 'Lib/swiglabels.swg')
-rw-r--r-- | Lib/swiglabels.swg | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/swiglabels.swg b/Lib/swiglabels.swg index ff20b70e8..4dee3cd2a 100644 --- a/Lib/swiglabels.swg +++ b/Lib/swiglabels.swg @@ -74,12 +74,12 @@ int a; int b; - static PyObject *MyVar = SWIG_SATIC_POINTER(MyVar) NewSomething(..); + static PyObject *SWIG_SATIC_POINTER(MyVar) = NewSomething(..); ... */ #ifdef __cplusplus -#define SWIG_STATIC_POINTER(var) +#define SWIG_STATIC_POINTER(var) var #else -#define SWIG_STATIC_POINTER(var) 0; if (!var) var = +#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var #endif |