// src/_c_internal_utils.c
+ static HPy
- static PyObject*
mpl_SetCurrentProcessExplicitAppUserModelID(
+ HPyContext *ctx,
+ HPy module,
- PyObject* module,
+ HPy arg
- PyObject* arg
) {
#ifdef _WIN32
+ wchar_t* appid = HPyUnicode_AsWideCharString(ctx, arg, NULL);
- wchar_t* appid = PyUnicode_AsWideCharString(arg, NULL);
...
}
// src/qhull_wrap.c
+ static HPy
- static PyObject*
delaunay(
+ HPyContext *ctx,
+ HPy h_self,
- PyObject *self,
+ HPy* args,
+ HPy_ssize_t nargs
- PyObject *args
) {
HPy xarg;
HPy yarg;
...
+ if (!HPyArg_Parse(ctx, NULL, args, nargs, "OO", &xarg, &yarg)) {
- if (!PyArg_ParseTuple(args, "OO", &xarg, &yarg)) {
+ HPyErr_SetString(ctx, ctx->h_ValueError, "expecting x and y arrays");
- PyErr_SetString(PyExc_ValueError, "expecting x and y arrays");
+ return HPy_NULL;
- return NULL;
}
...
}