12#include "misc_check_py.h"
19 if ((*skipP) >= objc) {
24 if (!PyCallable_Check(val)) {
28 }
else if (PyUnicode_Check(val)) {
30 const char * tmp = PyUnicode_AsUTF8AndSize(val, &size);
46 *retP = (
MK_CBP)Py_NewRef(val);
77 PyObject *
const callable = (PyObject*) __data__;
78 PyObject * resultO = NULL;
83 resultO = PyObject_CallFunctionObjArgs(callable,
STRN2VAL(typeName),
HDL2VAL(typeHdl),
HDL2VAL(objHdl), NULL);
86 if (resultO == NULL) {
#define OT_TUPLE_GET_ITEM(_obj, _skip)
#define OT_ERROR_LNG_2_META(m)
#define MkErrorStack_0E_Check()
static bool MK_NULL_STR_CHECK(char const *const __str, const long int __len)
check if __str is MK_NULL_STR return true or false …
MkErrorE
collection for the different error-codes …
@ MK_OK
(persistent) everything is OK.
MK_PTRB * MK_CBP
generic pointer to call-back data
#define MkObjectC_TT
class as MkTypeS-class-type, useable in a class-macro as: class##_TT …
static bool MkSelfExists(MK_OBJN obj)
Check if the MkObjectS::self exists …
#define MkObjectDeleteCallF_CHECK
validate call to MkObjectDeleteCallF
#define MkObjectDeleteCallF_ARGS
the MkObjectDeleteCallF arguments with default names
#define MkObjectDeleteFreeF_ARGS
the MkObjectDeleteFreeF arguments with default names
#define WrongNumArgs(...)
#define WrongCallableError(got)
MK_EXTERN enum MkErrorE MK_DECL MK CheckCallable(OT_Check_ARGS, MK_CBP *)