App: Wrap PyArg_ParseTupleAndKeywords

This commit is contained in:
Chris Hennes
2023-08-25 13:16:12 -05:00
parent 3b79fd58b7
commit 56d820892c
6 changed files with 45 additions and 30 deletions

View File

@@ -26,6 +26,7 @@
#include "StringHasherPy.h"
#include "StringHasherPy.cpp"
#include <Base/PyWrapParseTupleAndKeywords.h>
using namespace App;
@@ -45,8 +46,8 @@ PyObject *StringHasherPy::PyMake(struct _typeobject *, PyObject *, PyObject *)
// constructor method
int StringHasherPy::PyInit(PyObject* args, PyObject* kwds)
{
char* kw[] = {nullptr};
if (!PyArg_ParseTupleAndKeywords(args, kwds, "", kw)) {
static const std::array<const char *, 1> kwlist {nullptr};
if (!Base::Wrapped_ParseTupleAndKeywords(args, kwds, "", kwlist)) {
return -1;
}