PyAPI: add utilities PyTuple_SET_ITEMS, Py_INCREF_RET
Setting all values of a tuple is such a common operation that it deserves its own macro. Also added Py_INCREF_RET to avoid confusing use of comma operator.
This commit is contained in:
@@ -92,6 +92,7 @@ extern "C" {
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "mathutils/mathutils.h"
|
||||
#include "generic/python_utildefines.h"
|
||||
|
||||
//==============================
|
||||
// C++ => Python
|
||||
|
||||
Reference in New Issue
Block a user