diff options
author | Travis E. Oliphant <teoliphant@gmail.com> | 2012-06-28 10:42:11 -0500 |
---|---|---|
committer | Travis E. Oliphant <teoliphant@gmail.com> | 2012-06-28 10:42:11 -0500 |
commit | 1d4decdf49b26bab6889ed8ab2943558709567ca (patch) | |
tree | 2b613dc456e356c7b854f90a8569fd03b98be069 | |
parent | 8006fd4e940cacf334a3683265948245e3a4fdc2 (diff) | |
download | numpy-1d4decdf49b26bab6889ed8ab2943558709567ca.tar.gz |
API: Restore ability to not use semicolons.
-rw-r--r-- | numpy/core/include/numpy/ufuncobject.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/include/numpy/ufuncobject.h b/numpy/core/include/numpy/ufuncobject.h index 7f717a2c1..076dd880c 100644 --- a/numpy/core/include/numpy/ufuncobject.h +++ b/numpy/core/include/numpy/ufuncobject.h @@ -257,8 +257,8 @@ typedef struct _tagPyUFuncObject { (UFUNC_ERR_WARN << UFUNC_SHIFT_INVALID) #if NPY_ALLOW_THREADS -#define NPY_LOOP_BEGIN_THREADS do {if (!(loop->obj & UFUNC_OBJ_NEEDS_API)) _save = PyEval_SaveThread();} while (0) -#define NPY_LOOP_END_THREADS do {if (!(loop->obj & UFUNC_OBJ_NEEDS_API)) PyEval_RestoreThread(_save);} while (0) +#define NPY_LOOP_BEGIN_THREADS do {if (!(loop->obj & UFUNC_OBJ_NEEDS_API)) _save = PyEval_SaveThread();} while (0); +#define NPY_LOOP_END_THREADS do {if (!(loop->obj & UFUNC_OBJ_NEEDS_API)) PyEval_RestoreThread(_save);} while (0); #else #define NPY_LOOP_BEGIN_THREADS #define NPY_LOOP_END_THREADS |