File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -727,7 +727,7 @@ void ToxAVCore_install_dict(void)
727727#define SET (name ) \
728728 PyObject* obj_##name = PyLong_FromLong(TOXAV_##name); \
729729 PyDict_SetItemString(dict, #name, obj_##name); \
730- Py_DECREF(obj_##name);
730+ Py_DECREF(obj_##name)
731731
732732 PyObject * dict = PyDict_New ();
733733 SET (FRIEND_CALL_STATE_ERROR );
Original file line number Diff line number Diff line change 2828
2929extern PyObject * ToxOpError ;
3030
31- #define CHECK_TOX (self ) \
32- if ((self )->tox == NULL) { \
31+ #define CHECK_TOX (SELF ) \
32+ do { if ((SELF )->tox == NULL) { \
3333 PyErr_SetString(ToxOpError, "toxcore object not initialised."); \
3434 return NULL; \
35- }
35+ } } while (0)
3636
3737#if PY_MAJOR_VERSION < 3
3838 #define PYSTRING_FromString PyString_FromString
You can’t perform that action at this time.
0 commit comments