Mesh: Wrap PyArg_ParseTupleAndKeywords

This commit is contained in:
Chris Hennes
2023-08-25 13:17:13 -05:00
parent 1622079078
commit 79286f30da
2 changed files with 31 additions and 25 deletions

View File

@@ -33,6 +33,7 @@
#include <Base/GeometryPyCXX.h>
#include <Base/Interpreter.h>
#include <Base/PlacementPy.h>
#include <Base/PyWrapParseTupleAndKeywords.h>
#include <Base/VectorPy.h>
#include "Core/Approximation.h"
#include "Core/Evaluation.h"
@@ -211,13 +212,13 @@ private:
int exportAmfCompressed( hGrp->GetBool("ExportAmfCompressed", true) );
static char *kwList[] = {"objectList", "filename", "tolerance",
"exportAmfCompressed", nullptr};
static const std::array<const char *, 5> kwList{"objectList", "filename", "tolerance",
"exportAmfCompressed", nullptr};
if (!PyArg_ParseTupleAndKeywords( args.ptr(), keywds.ptr(),
"Oet|dp",
kwList, &objects, "utf-8", &fileNamePy,
&fTolerance, &exportAmfCompressed )) {
if (!Base::Wrapped_ParseTupleAndKeywords(args.ptr(), keywds.ptr(),
"Oet|dp",
kwList, &objects, "utf-8", &fileNamePy,
&fTolerance, &exportAmfCompressed)) {
throw Py::Exception();
}