11#define META_FILE_NAME "MkRuntimeC_py.c"
16#define OT_CLASS (&NS(MkRuntimeCR))
17#define OT_CLASS_NAME "MkRuntimeC"
19#define OT_LNG2META(O) MkRt(VAL2MNG(O))
21#define OT_retObj_CONSTR(mng) OT_retObj_SET(NS(MkRuntimeC_CTOR)(MK_RT_CALL (PyTypeObject*)class,mng))
23#define OT_SETUP_hdl OT_SETUP_hdl_tmpl(MkRuntimeC)
24#define OT_SETUP_hdl__null_allow OT_SETUP_hdl_tmpl__null_allow(MkRuntimeC)
25#define OT_SETUP_hdl_constr MK_RT_UNUSED AllRtSetup_NULL; \
26 MK_RT hdl = (MK_RT) OT_CLASS;
27#define OT_SETUP_hdl_destr OT_SETUP_hdl_tmpl__null_allow(MkRuntimeC)
28#define OT_SETUP_hdl_static MK_RT_UNUSED AllRtSetup_NULL; \
29 __attribute__((unused)) MK_TYP hdl = MkRuntimeC##_TT;
31#define OT_SETUP_hdl_static_constr OT_SETUP_hdl_static
33#if !defined(SetupRtFromObj_X)
34 #define SetupRtFromObj_X(hdl) AllRtSetup_X(hdl)
35 #define SetupRtFromObj_XN(hdl) AllRtSetup_XN(hdl)
40#define MkRuntimeCTT MK(MkKernelThreadState).MkRuntimeCTT
67 if (MkRuntimeCTT == NULL) MkRuntimeCTT = MkRuntimeSTT; \
70 if (MkRuntimeCTT->selfCreate == NS(MkRuntimeC_selfCreate)) return MK_OK; \
73 MkRuntimeCTT->selfCreate = NS(MkRuntimeC_selfCreate); \
74 MkRuntimeCTT->selfDelete = NS(MkRuntimeC_selfDelete); \
75 MkRuntimeCTT->selfUnlink = NS(MkRuntimeC_selfUnlink); \
77 if (!PyType_HasFeature(OT_CLASS,Py_TPFLAGS_READY)) { \
78 NS(MkRuntimeCR).tp_base = MkRuntimeC_base; \
79 OtErrorCheckLng (PyType_Ready(OT_CLASS)); \
81 OtErrorCheckLng(PyModule_AddObjectRef(m, "MkRuntimeC", (PyObject *)OT_CLASS)); \
84 MkRuntimeC_MK_NULL = Py_NewRef(MK(AtomCreate) (MK_RT_CALL OT_CLASS, NULL ));
88#define META_CONTEXT_S MK_ERROR_DEFAULT
99#define DebugGet_doc "int32 MkRuntimeC.DebugGet()"
100#define DebugSet_doc "MkRuntimeC.DebugSet(dbg:int32)"
101#define ErrorGetCode_doc "MkErrorE MkRuntimeC.ErrorGetCode()"
102#define IsSilentGet_doc "bool MkRuntimeC.IsSilentGet()"
103#define IsSilentSet_doc "MkRuntimeC.IsSilentSet(silent:bool)"
104#define Log0_doc "MkRuntimeC.Log0(?fmtobj:MkObjectC=None?, ?debug:int32=0?, ?callfunc:string=\"MK_NULL\"?, ?lvl:int32=0?) (const)"
105#define LogTargetGet_doc "string MkRuntimeC.LogTargetGet()"
106#define LogTargetReset_doc "MkRuntimeC.LogTargetReset()"
107#define LogTargetSet_doc "MkRuntimeC.LogTargetSet(logTgt:string)"
108#define NoDecoSet_doc "MkRuntimeC.NoDecoSet(noDeco:bool)"
314 {
"DebugGet" , (PyCFunction)
NS(MkRuntimeC_DebugGet) , METH_NOARGS|METH_CLASS ,
DebugGet_doc },
315 {
"DebugSet" , (PyCFunction)
NS(MkRuntimeC_DebugSet) , METH_O|METH_CLASS ,
DebugSet_doc },
316 {
"ErrorGetCode" , (PyCFunction)
NS(MkRuntimeC_ErrorGetCode) , METH_NOARGS|METH_CLASS ,
ErrorGetCode_doc },
317 {
"IsSilentGet" , (PyCFunction)
NS(MkRuntimeC_IsSilentGet) , METH_NOARGS|METH_CLASS ,
IsSilentGet_doc },
318 {
"IsSilentSet" , (PyCFunction)
NS(MkRuntimeC_IsSilentSet) , METH_O|METH_CLASS ,
IsSilentSet_doc },
319 {
"Log0" , (PyCFunction)
NS(MkRuntimeC_Log0) , METH_VARARGS|METH_CLASS ,
Log0_doc },
320 {
"LogTargetGet" , (PyCFunction)
NS(MkRuntimeC_LogTargetGet) , METH_NOARGS|METH_CLASS ,
LogTargetGet_doc },
321 {
"LogTargetReset" , (PyCFunction)
NS(MkRuntimeC_LogTargetReset) , METH_NOARGS|METH_CLASS ,
LogTargetReset_doc },
322 {
"LogTargetSet" , (PyCFunction)
NS(MkRuntimeC_LogTargetSet) , METH_O|METH_CLASS ,
LogTargetSet_doc },
323 {
"NoDecoSet" , (PyCFunction)
NS(MkRuntimeC_NoDecoSet) , METH_O|METH_CLASS ,
NoDecoSet_doc },
333 {NULL, NULL, 0, NULL}
342 PyVarObject_HEAD_INIT(NULL, 0)
343 .tp_name =
"pymkkernel.MkRuntimeC",
344 .tp_doc =
"PyMkKernel MkRuntimeC Type",
347 .tp_flags = Py_TPFLAGS_DEFAULT,
#define OT_CHECK_bool(val)
#define OT_SETUP_VARARGS(min, max, d)
#define OT_retObj_SET_BOL(nat)
#define OT_SETUP_NOARG(d)
#define OT_SETUP_ONEARG(d)
#define OT_CHECK_NI4(val)
#define OT_retObj_SET_Error
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_None
#define OT_retObj_SET_I32(nat)
struct MkRuntimeC_Obj MkRuntimeC_Obj
#define OT_retObj_SET_STR(nat)
#define OT_CLASS_TYPE_REF
#define OT_NEW_Mk_enum_OBJ(typ, val)
#define OT_CHECK_OPTIONAL(val)
#define OT_retObj_SET(val)
#define MkErrorC_Check(mng, PROC)
#define OT_CHECK_STRN(val)
static PyMethodDef MkRuntimeC_Methods[]
#define LogTargetReset_doc
#define OT_SETUP_hdl_static
#define MK_NULL_YES
flag, allow NULL
MK_PTRB * MK_PTR
generic pointer data-type
const MK_STRB * MK_STRN
constant string pointer data-type
bool MK_BOOL
real bool data-type
signed int MK_I32
4 byte integer data-type
int MK_DBG
debug-level data-type …
static bool MkSysStringIsNULL(MK_STRN str)
test if string is NULL or EMPTY …
#define MkRuntimeC_X2obj(x)
#define MkRuntimeLogTargetReset()
#define MkRuntimeErrorGetCode()
static void MkRuntimeDebugSet(MK_I32 dbg)
set the MkRuntimeS::debug value …
static bool MkRuntimeIsSilentGet(void)
get the MkRuntimeS::isSilent value …
#define MkRuntimeLogTargetSet(...)
#define MkRuntimeNoDecoSet(...)
static MK_I32 MkRuntimeDebugGet(void)
get the MkRuntimeS::debug value …
#define MkRuntimeIsSilentSet(...)
static MK_STRN MkRuntimeLogTargetGet(void)
get the MkLogDataS::logNAME value …
#define MkRuntimeLog0(...)
#define OT_CHECK_OBJN(val, nullB)
The MkRuntimeS provide a per-thread environment for pymkkernel …