theKernel 10.0
Loading...
Searching...
No Matches
MkRuntimeC_inline_cc.hh
Go to the documentation of this file.
1
9/* LABEL-NO */
10
11/*****************************************************************************/
12/* */
13/* context */
14/* */
15/*****************************************************************************/
16
17namespace ccmkkernel {
18
19/*
20 inline MK_PTR MkRuntimeC::MkRuntimeC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env) {
21 return new MkRuntimeC(obj);
22 }
23*/
24
25 // BEGIN-MkRuntimeC - created by 'cc_MqC.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
26
30
31 // doc-key: MkRuntimeC,MkRuntimeC-Config,sm_
32
36 MK_I32 __retVal__L = MkRuntimeDebugGet();
37 return __retVal__L;
38 }
39
41 inline void MkRuntimeC::DebugSet (MK_I32 dbg) {
44 }
45
49 enum MkErrorE errVal = MkRuntimeErrorGetCode();
50 return errVal;
51 }
52
56 MK_BOOL __retVal__L = MkRuntimeIsSilentGet();
57 return __retVal__L;
58 }
59
61 inline void MkRuntimeC::IsSilentSet (MK_BOOL silent) {
64 }
65
69 MK_STRN __retVal__L = MkRuntimeLogTargetGet();
70 return __retVal__L;
71 }
72
76 enum MkErrorE errVal = MkRuntimeLogTargetReset();
77 MkErrorC_Check(NULL, errVal);
78 }
79
81 inline void MkRuntimeC::LogTargetSet (MK_STRN logTgt) {
83 enum MkErrorE errVal = MkRuntimeLogTargetSet(logTgt);
84 MkErrorC_Check(NULL, errVal);
85 }
86
88 inline void MkRuntimeC::LogTargetSet (const std::string& logTgt) {
90 const MK_STRN logTgt_hdl = logTgt.c_str();
91 enum MkErrorE errVal = MkRuntimeLogTargetSet(logTgt_hdl);
92 MkErrorC_Check(NULL, errVal);
93 }
94
96 inline void MkRuntimeC::NoDecoSet (MK_BOOL noDeco) {
98 MkRuntimeNoDecoSet(noDeco);
99 }
100
102 // MkRuntimeC_Config_CC_API
103
107
108 // doc-key: MkRuntimeC,MkRuntimeC-Info,sm_
109
111 inline void MkRuntimeC::Log0 (const MkObjectC* fmtobj, MK_DBG debug, MK_STRN callfunc, MK_I32 lvl) {
113 MK_OBJN fmtobj_hdl = MkObjectC::getOBJN__null_allow(fmtobj);
114 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
115 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
116 MkRuntimeLog0(fmtobj_hdl, debug, callfunc, lvl);
117 }
118
120 inline void MkRuntimeC::Log0 (const MkObjectC& fmtobj, MK_DBG debug, MK_STRN callfunc, MK_I32 lvl) {
122 const MK_OBJN fmtobj_hdl = MkObjectC::getOBJN(fmtobj);
123 if (callfunc == NULL) {callfunc = __builtin_FUNCTION();}
124 if (debug > (MK_DBG)(MkRuntimeDebugGet())) {return;}
125 MkRuntimeLog0(fmtobj_hdl, debug, callfunc, lvl);
126 }
127
129 // MkRuntimeC_Info_CC_API
130
131 // END-MkRuntimeC - created by 'cc_MqC.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
132
133} // END - namespace "ccmkkernel"
#define MkErrorC_Check(errObj, errVal)
object header … → C-API: libmkkernel::MkObjectS
MkErrorE
collection for the different error-codes …
bool MK_BOOL
real bool data-type
int MK_DBG
debug-level data-type …
signed int MK_I32
4 byte integer data-type
const MK_STRB * MK_STRN
constant string pointer data-type
MK_OBJN getOBJN__null_allow() const
(const) return the LibMsgqueObject from current MkObjectC instance
MK_OBJN getOBJN() const
(const) return the LibMsgqueObject from current MkObjectC instance
static MK_BOOL IsSilentGet()
C++: [static] MK_BOOL MkRuntimeC::IsSilentGet() → C-API get the MkRuntimeS::isSilent value …
static void IsSilentSet(MK_BOOL silent)
C++: [static] MkRuntimeC::IsSilentSet(MK_BOOL silent) → C-API set the MkRuntimeS::isSilent value...
static MK_STRN LogTargetGet()
C++: [static] MK_STRN MkRuntimeC::LogTargetGet() → C-API get the MkLogDataS::logNAME value …
static void DebugSet(MK_I32 dbg)
C++: [static] MkRuntimeC::DebugSet(MK_I32 dbg) → C-API set the MkRuntimeS::debug value …
static void NoDecoSet(MK_BOOL noDeco)
C++: [static] MkRuntimeC::NoDecoSet(MK_BOOL noDeco) → C-API set the MkRuntimeS::noDeco value …
static MK_I32 DebugGet()
C++: [static] MK_I32 MkRuntimeC::DebugGet() → C-API get the MkRuntimeS::debug value …
static MkErrorE ErrorGetCode()
C++: [static] MkErrorE MkRuntimeC::ErrorGetCode() → C-API return libmkkernel::MkErrorS::code fro...
static void LogTargetReset()
C++: [static] MkRuntimeC::LogTargetReset() → C-API set the MkRuntimeS::log value to the DEFAULT ...
static void LogTargetSet(MK_STRN logTgt)
C++: [static] MkRuntimeC::LogTargetSet(MK_STRN logTgt) → C-API set the MkRuntimeS::log value and...
#define MkRuntimeLogTargetReset()
#define MkRuntimeErrorGetCode()
#define MkRuntimeLogTargetSet(...)
static void MkRuntimeDebugSet(MK_I32 dbg)
set the MkRuntimeS::debug value …
#define MkRuntimeNoDecoSet(...)
static bool MkRuntimeIsSilentGet(void)
get the MkRuntimeS::isSilent value …
#define MkRuntimeIsSilentSet(...)
static MK_STRN MkRuntimeLogTargetGet(void)
get the MkLogDataS::logNAME value …
static MK_I32 MkRuntimeDebugGet(void)
get the MkRuntimeS::debug value …
static void Log0(const MkObjectC *fmtobj=NULL, MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0)
C++: [static] MkRuntimeC::Log0(const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = _...
#define MkRuntimeLog0(...)
#define MkRtSetup_NULL
namespace for the CcMkKernel "C++"-API