static PyObject* python_api_cons_show(PyObject *self, PyObject *args) { PyObject* message = NULL; if (!PyArg_ParseTuple(args, "O", &message)) { Py_RETURN_NONE; } char *message_str = python_str_or_unicode_to_string(message); allow_python_threads(); api_cons_show(message_str); free(message_str); disable_python_threads(); Py_RETURN_NONE; }
static int c_api_cons_show(const char * const message) { return api_cons_show(message); }