theKernel 10.0
Loading...
Searching...
No Matches
LibMkKernel_private_py.h File Reference

tag: nhi1-release-250425 More...

#include "LibMkKernel_py.h"
+ Include dependency graph for LibMkKernel_private_py.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void pymkkernel_ObjectDeleteFree (MkObjectDeleteFreeF_ARGS)
 
void pymkkernel_ObjectDeleteFree2 (MkObjectDeleteFreeF_ARGS)
 
enum MkErrorE pymkkernel_ObjectDeleteCall (MK_RT mkrt, MK_OBJN const obj, MK_STRN const typeName, MK_HDL const typeHdl, MK_HDL const objHdl, MK_CBP const __data__)
 

Variables

OT_OBJ_T pymkkernel_pymkkernel
 
OT_OBJ_T pymkkernel_MkErrorC_FormatException
 

Detailed Description

tag: nhi1-release-250425

Definition in file LibMkKernel_private_py.h.

Function Documentation

◆ pymkkernel_ObjectDeleteCall()

enum MkErrorE pymkkernel_ObjectDeleteCall ( MK_RT mkrt,
MK_OBJN const obj,
MK_STRN const typeName,
MK_HDL const typeHdl,
MK_HDL const objHdl,
MK_CBP const __data__ )

Definition at line 69 of file MkCall_py.c.

70{
72
73 // if NO self object is available than NO callback is called
74 if (!MkSelfExists(obj)) return MK_OK;
75
76 // if NO self object is available than NO python callback is called
77 PyObject * const callable = (PyObject*) __data__;
78 PyObject * resultO = NULL;
79
80 PyErr_Clear();
81
82 // call the function
83 resultO = PyObject_CallFunctionObjArgs(callable, STRN2VAL(typeName), HDL2VAL(typeHdl), HDL2VAL(objHdl), NULL);
84
85 // no error return OK
86 if (resultO == NULL) {
88 } else {
89 Py_CLEAR(resultO);
90 }
91
92 return MkErrorStack_0E_Check();
93}
#define HDL2VAL(nat)
#define OT_ERROR_LNG_2_META(m)
#define STRN2VAL(nat)
#define MkErrorStack_0E_Check()
@ MK_OK
(persistent) everything is OK.
#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

◆ pymkkernel_ObjectDeleteFree()

void pymkkernel_ObjectDeleteFree ( MkObjectDeleteFreeF_ARGS )

Definition at line 96 of file MkCall_py.c.

97{
98 MK(CallFree)(dataP);
99}
#define MK(n)

◆ pymkkernel_ObjectDeleteFree2()

void pymkkernel_ObjectDeleteFree2 ( MkObjectDeleteFreeF_ARGS )

Definition at line 102 of file MkCall_py.c.

103{
104 MK(CallFree)(dataP);
105}

Variable Documentation

◆ pymkkernel_MkErrorC_FormatException

OT_OBJ_T pymkkernel_MkErrorC_FormatException
extern

Definition at line 90 of file MkErrorC_py.c.

◆ pymkkernel_pymkkernel

OT_OBJ_T pymkkernel_pymkkernel
extern

Definition at line 28 of file LibMkKernel_py.c.