theKernel 10.0
Loading...
Searching...
No Matches
MkRuntimeC_rb.c File Reference

tag: nhi1-release-250425 More...

+ Include dependency graph for MkRuntimeC_rb.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "MkRuntimeC_rb.c"
 
#define OT_CLASS   NS(MkRuntimeC)
 
#define OT_CLASS_NAME   "MkRuntimeC"
 
#define OT_LNG2META(O)
 
#define S_INIT   NS(sInit)(MK_RT_CALL_ONLY)
 
#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(MkRuntimeC);
 
#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(MkRuntimeC);
 
#define OT_SETUP_hdl_constr
 
#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(MkRuntimeC);
 
#define OT_SETUP_hdl_static
 
#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static
 
#define SetupRtFromObj_X(hdl)
 
#define SetupRtFromObj_XN(hdl)
 
#define DebugGet_doc   "int32 MkRuntimeC.DebugGet()"
 
#define DebugSet_doc   "MkRuntimeC.DebugSet(dbg:int32)"
 
#define ErrorGetCode_doc   "MkErrorE MkRuntimeC.ErrorGetCode()"
 
#define IsSilentGet_doc   "bool MkRuntimeC.IsSilentGet()"
 
#define IsSilentSet_doc   "MkRuntimeC.IsSilentSet(silent:bool)"
 
#define Log0_doc   "MkRuntimeC.Log0(?fmtobj:MkObjectC=nil?, ?debug:int32=0?, ?callfunc:string=\"MK_NULL\"?, ?lvl:int32=0?) (const)"
 
#define LogTargetGet_doc   "string MkRuntimeC.LogTargetGet()"
 
#define LogTargetReset_doc   "MkRuntimeC.LogTargetReset()"
 
#define LogTargetSet_doc   "MkRuntimeC.LogTargetSet(logTgt:string)"
 
#define NoDecoSet_doc   "MkRuntimeC.NoDecoSet(noDeco:bool)"
 

Functions

static void rbmkkernel_sMark (MK_PTR)
 
static OT_OBJ_T rbmkkernel_LNG_CONSTR (OT_CLS_T clazz, MK_MNG mng, int objc, VALUE *objv)
 
static MK_PTR rbmkkernel_MkRuntimeC_selfCreate (MK_RT mkrt, MK_OBJ obj, MK_PTR envP)
 
static void rbmkkernel_MkRuntimeC_selfDelete (MK_RT mkrt, MK_PTR ptr, MK_PTR envP)
 
static void rbmkkernel_MkRuntimeC_selfUnlink (MK_RT mkrt, MK_PTR ptr, MK_PTR envP)
 
static void rbmkkernel_sInit (MK_RT mkrt)
 
static OT_ProcRet rbmkkernel_MkRuntimeC_DebugGet (OtClass_ARGS)
  Ruby: (static) int32 MkRuntimeC.DebugGet() C-API
get the MkRuntimeS::debug value …
 
static OT_ProcRet rbmkkernel_MkRuntimeC_DebugSet (OtClass_ARGS)
  Ruby: (static) MkRuntimeC.DebugSet(dbg:int32) C-API
set the MkRuntimeS::debug value …
 
static OT_ProcRet rbmkkernel_MkRuntimeC_ErrorGetCode (OtClass_ARGS)
  Ruby: (static) MkErrorE MkRuntimeC.ErrorGetCode() C-API
return MkErrorS::code from a given MkRuntimeC
 
static OT_ProcRet rbmkkernel_MkRuntimeC_IsSilentGet (OtClass_ARGS)
  Ruby: (static) bool MkRuntimeC.IsSilentGet() C-API
get the MkRuntimeS::isSilent value …
 
static OT_ProcRet rbmkkernel_MkRuntimeC_IsSilentSet (OtClass_ARGS)
  Ruby: (static) MkRuntimeC.IsSilentSet(silent:bool) C-API
set the MkRuntimeS::isSilent value …
 
static OT_ProcRet rbmkkernel_MkRuntimeC_LogTargetGet (OtClass_ARGS)
  Ruby: (static) string MkRuntimeC.LogTargetGet() C-API
get the MkLogDataS::logNAME value …
 
static OT_ProcRet rbmkkernel_MkRuntimeC_LogTargetReset (OtClass_ARGS)
  Ruby: (static) MkRuntimeC.LogTargetReset() C-API
set the MkRuntimeS::log value to the DEFAULT value …
 
static OT_ProcRet rbmkkernel_MkRuntimeC_LogTargetSet (OtClass_ARGS)
  Ruby: (static) MkRuntimeC.LogTargetSet(logTgt:string) C-API
set the MkRuntimeS::log value and cleanup old value …
 
static OT_ProcRet rbmkkernel_MkRuntimeC_NoDecoSet (OtClass_ARGS)
  Ruby: (static) MkRuntimeC.NoDecoSet(noDeco:bool) C-API
set the MkRuntimeS::noDeco value …
 
static OT_ProcRet rbmkkernel_MkRuntimeC_Log0 (OtClass_ARGS)
  Ruby: (static) MkRuntimeC.Log0(?fmtobj:MkObjectC=nil?, ?debug:int32=0?, ?callfunc:string="MK_NULL"?, ?lvl:int32=0?) C-API
log the MkRuntimeC
 
void rbmkkernel_MkRuntimeC_Init (MK_RT mkrt)
 

Variables

OT_CLS_T OT_CLASS
 
static MK_TYP MkRuntimeCTT = NULL
 
OT_OBJ_T rbmkkernel_MkRuntimeC_MK_NULL = 0
 
static rb_data_type_t rbmkkernel_MkRuntimeC_T
 

Detailed Description

tag: nhi1-release-250425

Definition in file MkRuntimeC_rb.c.

Macro Definition Documentation

◆ DebugGet_doc

#define DebugGet_doc   "int32 MkRuntimeC.DebugGet()"

Definition at line 107 of file MkRuntimeC_rb.c.

◆ DebugSet_doc

#define DebugSet_doc   "MkRuntimeC.DebugSet(dbg:int32)"

Definition at line 108 of file MkRuntimeC_rb.c.

◆ ErrorGetCode_doc

#define ErrorGetCode_doc   "MkErrorE MkRuntimeC.ErrorGetCode()"

Definition at line 109 of file MkRuntimeC_rb.c.

◆ IsSilentGet_doc

#define IsSilentGet_doc   "bool MkRuntimeC.IsSilentGet()"

Definition at line 110 of file MkRuntimeC_rb.c.

◆ IsSilentSet_doc

#define IsSilentSet_doc   "MkRuntimeC.IsSilentSet(silent:bool)"

Definition at line 111 of file MkRuntimeC_rb.c.

◆ Log0_doc

#define Log0_doc   "MkRuntimeC.Log0(?fmtobj:MkObjectC=nil?, ?debug:int32=0?, ?callfunc:string=\"MK_NULL\"?, ?lvl:int32=0?) (const)"

Definition at line 112 of file MkRuntimeC_rb.c.

◆ LogTargetGet_doc

#define LogTargetGet_doc   "string MkRuntimeC.LogTargetGet()"

Definition at line 113 of file MkRuntimeC_rb.c.

◆ LogTargetReset_doc

#define LogTargetReset_doc   "MkRuntimeC.LogTargetReset()"

Definition at line 114 of file MkRuntimeC_rb.c.

◆ LogTargetSet_doc

#define LogTargetSet_doc   "MkRuntimeC.LogTargetSet(logTgt:string)"

Definition at line 115 of file MkRuntimeC_rb.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "MkRuntimeC_rb.c"

Definition at line 10 of file MkRuntimeC_rb.c.

◆ NoDecoSet_doc

#define NoDecoSet_doc   "MkRuntimeC.NoDecoSet(noDeco:bool)"

Definition at line 116 of file MkRuntimeC_rb.c.

◆ OT_CLASS

#define OT_CLASS   NS(MkRuntimeC)

Definition at line 14 of file MkRuntimeC_rb.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "MkRuntimeC"

Definition at line 15 of file MkRuntimeC_rb.c.

◆ OT_LNG2META

#define OT_LNG2META ( O)
Value:
#define VAL2MNG(val)
static MK_RT MkRt(MK_MNG mng)
cast a unknown-object into an MkRuntimeS pointer or NULL if not possible

Definition at line 17 of file MkRuntimeC_rb.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(MkRuntimeC);

Definition at line 87 of file MkRuntimeC_rb.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(MkRuntimeC);

Definition at line 88 of file MkRuntimeC_rb.c.

◆ OT_SETUP_hdl_constr

#define OT_SETUP_hdl_constr
Value:
OT_OBJ_T clazz = self; \
#define OT_OBJ_T
#define MkERROR
#define MkRuntimeC_type
same as MkRuntimeS but useable in a class-macro as: class##_type …
#define AllRtSetup_NULL

Definition at line 89 of file MkRuntimeC_rb.c.

89#define OT_SETUP_hdl_constr AllRtSetup_NULL; \
90 OT_OBJ_T clazz = self; \
91 MkRuntimeC_type hdl = (MkRuntimeC_type) &MkERROR;

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(MkRuntimeC);

Definition at line 92 of file MkRuntimeC_rb.c.

◆ OT_SETUP_hdl_static

#define OT_SETUP_hdl_static
Value:
__attribute__((unused)) MK_TYP hdl = MkRuntimeC##_TT;
MkTypeS - class known as typ or type is used as class-base for a Managed-Object-Technology (MOT) type...

Definition at line 93 of file MkRuntimeC_rb.c.

93#define OT_SETUP_hdl_static AllRtSetup_NULL; \
94 __attribute__((unused)) MK_TYP hdl = MkRuntimeC##_TT;

◆ OT_SETUP_hdl_static_constr

#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static

Definition at line 95 of file MkRuntimeC_rb.c.

◆ S_INIT

#define S_INIT   NS(sInit)(MK_RT_CALL_ONLY)

Definition at line 69 of file MkRuntimeC_rb.c.

◆ SetupRtFromObj_X

#define SetupRtFromObj_X ( hdl)
Value:
#define AllRtSetup_X(x)

Definition at line 98 of file MkRuntimeC_rb.c.

◆ SetupRtFromObj_XN

#define SetupRtFromObj_XN ( hdl)
Value:
#define AllRtSetup_XN(x)

Definition at line 99 of file MkRuntimeC_rb.c.

Function Documentation

◆ rbmkkernel_LNG_CONSTR()

static OT_OBJ_T rbmkkernel_LNG_CONSTR ( OT_CLS_T clazz,
MK_MNG mng,
int objc,
VALUE * objv )
inlinestatic

Definition at line 46 of file MkRuntimeC_rb.c.

46 {
47 return MK(AtomObjCrt)(clazz,&NS(MkRuntimeC_T),mng,objc,objv);
48}
#define MK(n)
#define NS(n)
#define MkRuntimeC_T
class as MkTypeDefS-class-type, useable in a class-macro as: class##_T …

◆ rbmkkernel_MkRuntimeC_Init()

void rbmkkernel_MkRuntimeC_Init ( MK_RT mkrt)

Definition at line 289 of file MkRuntimeC_rb.c.

289 {
290
291 // init type
293 S_INIT;
294
295// BEGIN-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
296
297// doc-key: MkRuntimeC,MkRuntime,sm_
298OT_METH_O ( MkRuntimeC, DebugGet, MkRuntimeC_DebugGet )
299OT_METH_S ( MkRuntimeC, DebugGet, MkRuntimeC_DebugGet )
300OT_METH_O ( MkRuntimeC, DebugSet, MkRuntimeC_DebugSet )
301OT_METH_S ( MkRuntimeC, DebugSet, MkRuntimeC_DebugSet )
302OT_METH_O ( MkRuntimeC, ErrorGetCode, MkRuntimeC_ErrorGetCode )
303OT_METH_S ( MkRuntimeC, ErrorGetCode, MkRuntimeC_ErrorGetCode )
304OT_METH_O ( MkRuntimeC, IsSilentGet, MkRuntimeC_IsSilentGet )
305OT_METH_S ( MkRuntimeC, IsSilentGet, MkRuntimeC_IsSilentGet )
306OT_METH_O ( MkRuntimeC, IsSilentSet, MkRuntimeC_IsSilentSet )
307OT_METH_S ( MkRuntimeC, IsSilentSet, MkRuntimeC_IsSilentSet )
308OT_METH_O ( MkRuntimeC, Log0, MkRuntimeC_Log0 )
309OT_METH_S ( MkRuntimeC, Log0, MkRuntimeC_Log0 )
310OT_METH_O ( MkRuntimeC, LogTargetGet, MkRuntimeC_LogTargetGet )
311OT_METH_S ( MkRuntimeC, LogTargetGet, MkRuntimeC_LogTargetGet )
312OT_METH_O ( MkRuntimeC, LogTargetReset, MkRuntimeC_LogTargetReset )
313OT_METH_S ( MkRuntimeC, LogTargetReset, MkRuntimeC_LogTargetReset )
314OT_METH_O ( MkRuntimeC, LogTargetSet, MkRuntimeC_LogTargetSet )
315OT_METH_S ( MkRuntimeC, LogTargetSet, MkRuntimeC_LogTargetSet )
316OT_METH_O ( MkRuntimeC, NoDecoSet, MkRuntimeC_NoDecoSet )
317OT_METH_S ( MkRuntimeC, NoDecoSet, MkRuntimeC_NoDecoSet )
318
319// END-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
320
321// BEGIN-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
322
323// → no data
324
325// END-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
326
327}
#define OT_METH_S(c, s, f)
#define OT_METH_O(c, s, f)
static MK_TYP MkRuntimeCTT
#define S_INIT
#define MkRuntimeC_TT
class as MkTypeS-class-type, useable in a class-macro as: class##_TT …

◆ rbmkkernel_MkRuntimeC_selfCreate()

static MK_PTR rbmkkernel_MkRuntimeC_selfCreate ( MK_RT mkrt,
MK_OBJ obj,
MK_PTR envP )
static

Definition at line 55 of file MkRuntimeC_rb.c.

55 {
56 OT_OBJ_T self = NS(LNG_CONSTR) (OT_CLASS, obj, 0, NULL);
57 return VAL2PTR(self);
58}
#define VAL2PTR(val)
#define OT_CLASS

◆ rbmkkernel_MkRuntimeC_selfDelete()

static void rbmkkernel_MkRuntimeC_selfDelete ( MK_RT mkrt,
MK_PTR ptr,
MK_PTR envP )
static

Definition at line 60 of file MkRuntimeC_rb.c.

60 {
62}
#define PTR2VAL(nat)
#define OT_OBJECT_DELETE_HARD(obj)

◆ rbmkkernel_MkRuntimeC_selfUnlink()

static void rbmkkernel_MkRuntimeC_selfUnlink ( MK_RT mkrt,
MK_PTR ptr,
MK_PTR envP )
static

Definition at line 64 of file MkRuntimeC_rb.c.

64 {
65 OT_OBJ_T self = PTR2VAL(ptr);
66 RDATA(self)->data = NULL;
67}

◆ rbmkkernel_sInit()

static void rbmkkernel_sInit ( MK_RT mkrt)
static

Definition at line 70 of file MkRuntimeC_rb.c.

70 {
71
72 // add "selfCreate" and "selfDelete" feature to the MQ-MkRuntimeC-Type
73 MkRuntimeCTT->selfCreate = NS(MkRuntimeC_selfCreate);
74 MkRuntimeCTT->selfDelete = NS(MkRuntimeC_selfDelete);
75 MkRuntimeCTT->selfUnlink = NS(MkRuntimeC_selfUnlink);
76
77 // create the RUBY class
78 OT_CLASS = rb_define_class_under(OT_PKG, "MkRuntimeC", MK_BASE_CLASS);
79 rb_undef_alloc_func(OT_CLASS);
80
81 /* define the "NULL" object */
82 VALUE nullO = TypedData_Wrap_Struct (OT_CLASS, &NS(MkRuntimeC_T), MK_NULL);
83 NS(MkRuntimeC_MK_NULL) = nullO;
85}
#define OT_PKG
#define MK_BASE_CLASS
#define INCR_REF(valP)
#define MkRuntimeC_MK_NULL
#define MK_NULL
The Programming-Language-Micro-Kernel (PLMK) NULL value as nil in Ruby …
MkSelfUnlinkF selfUnlink
"unlink" the "self" pointer from META-Kernel
MkSelfDeleteF selfDelete
"delete" the "self" pointer
MkSelfCreateF selfCreate
"create" the "self" pointer

◆ rbmkkernel_sMark()

void rbmkkernel_sMark ( MK_PTR ptr)
static

Definition at line 286 of file MkRuntimeC_rb.c.

286 {
287}

Variable Documentation

◆ MkRuntimeCTT

MK_TYP MkRuntimeCTT = NULL
static

Definition at line 22 of file MkRuntimeC_rb.c.

◆ OT_CLASS

OT_CLS_T OT_CLASS

Definition at line 19 of file MkRuntimeC_rb.c.

◆ rbmkkernel_MkRuntimeC_MK_NULL

OT_OBJ_T rbmkkernel_MkRuntimeC_MK_NULL = 0

Definition at line 23 of file MkRuntimeC_rb.c.

◆ rbmkkernel_MkRuntimeC_T

rb_data_type_t rbmkkernel_MkRuntimeC_T
static
Initial value:
= {
"MkRuntimeC",
{
0,
0,
},
NULL,
NULL,
RUBY_TYPED_FREE_IMMEDIATELY
}
static void rbmkkernel_AtomDeleteSoft(MK_MNG)
static void rbmkkernel_sMark(MK_PTR)

Definition at line 29 of file MkRuntimeC_rb.c.

29 {
30 "MkRuntimeC",
31 {
32 NS(sMark),
33 MK(AtomDeleteSoft),
34 0, /* dsize */
35 0, /* reserved[1] */
36 },
37 NULL, /* parent */
38 NULL, /* data */
39 RUBY_TYPED_FREE_IMMEDIATELY
40};