martmists
12/11/2021, 4:22 PMstatic PyObject *
spam_system(PyObject *self, PyObject *args)
{
const char *command;
int sts;
if (!PyArg_ParseTuple(args, "s", &command))
return NULL;
// ...
return Py_INCREF(Py_None);
}
What I've got so far:
private val spamSystem = staticCFunction { self: PyObjectT, args: PyObjectT ->
val command = ???
if (PyArg_ParseTuple(args, "", ???) == 0) {
return@staticCFunction null
}
// ...
Py_None.incref()
}
Dominaezzz
12/11/2021, 5:17 PMval command = alloc<CPointerVar<ByteVar>>()
command.ptr