theKernel 10.0
Loading...
Searching...
No Matches
MkRuntimeC_Config_C_API

MkRuntimeC - various functions to configure the MkRuntimeRLS (only C) … More...

+ Collaboration diagram for MkRuntimeC_Config_C_API:

Macros

#define MkRuntimeLogBufferPush()
 
#define MkRuntimeLogBufferPop()
 

Functions

static bool MkRuntimeIsSilentGet (void)
 get the MkRuntimeS::isSilent value …
 
static void MkRuntimeIsSilentSet_RT (MK_RT mkrt, bool silent)
 set the MkRuntimeS::isSilent value …
 
static void MkRuntimeNoDecoSet_RT (MK_RT mkrt, bool noDeco)
 set the MkRuntimeS::noDeco value …
 
static MK_I32 MkRuntimeDebugGet (void)
 get the MkRuntimeS::debug value …
 
static void MkRuntimeDebugSet (MK_I32 dbg)
 set the MkRuntimeS::debug value …
 
static MK_STRN MkRuntimeLogTargetGet (void)
 get the MkLogDataS::logNAME value …
 
enum MkErrorE MkRuntimeLogTargetSet_RT (MK_RT mkrt, MK_STRN logTgt)
 set the MkRuntimeS::log value and cleanup old value …
 
enum MkErrorE MkRuntimeLogTargetReset_RT (MK_RT mkrt)
 set the MkRuntimeS::log value to the DEFAULT value …
 
MkLogDataS MkRuntimeLogTargetPush_RT (MK_RT mkrt, MK_STRN logTgt)
 
void MkRuntimeLogTargetPop_RT (MK_RT mkrt, MkLogDataS logOld)
 
void MkRuntimeSetCID (MK_OBJ const cid)
 CID == context-in-duty.
 
static enum MkErrorE MkRuntimeErrorGetCode_RT (MK_RT mkrt)
 return MkErrorS::code from a given MkRuntimeC
 

MkRuntimeC - MkRuntimeC_Config_C_API - function

MK_RT MkRuntimeGetP (void)
 Non-inline replacement for MkRuntimeGet
 
MK_RT MkRuntimeGetFromObjP (MK_OBJ obj)
 Non-inline replacement for MkRuntimeGetFromObj
 
MK_I32 MkRuntimeDebugGetP (void)
 Non-inline replacement for MkRuntimeDebugGet
 
void MkRuntimeDebugSetP (MK_I32 dbg)
 Non-inline replacement for MkRuntimeDebugSet
 
enum MkErrorE MkRuntimeErrorGetCodeP (MK_RT mkrt)
 Non-inline replacement for MkRuntimeErrorGetCode
 
MK_BOOL MkRuntimeIsSilentGetP (void)
 Non-inline replacement for MkRuntimeIsSilentGet
 
void MkRuntimeIsSilentSetP (MK_RT mkrt, MK_BOOL silent)
 Non-inline replacement for MkRuntimeIsSilentSet
 
MK_STRN MkRuntimeLogTargetGetP (void)
 Non-inline replacement for MkRuntimeLogTargetGet
 
void MkRuntimeNoDecoSetP (MK_RT mkrt, MK_BOOL noDeco)
 Non-inline replacement for MkRuntimeNoDecoSet
 

MkRuntimeC - MkRuntimeC_Config_C_API - overload

#define MkRuntimeErrorGetCode_NULL()
 
#define MkRuntimeErrorGetCode()
 
#define MkRuntimeErrorGetCode_E(...)
 
#define MkRuntimeErrorGetCode_C(...)
 
#define MkRuntimeIsSilentSet_NULL(...)
 
#define MkRuntimeIsSilentSet(...)
 
#define MkRuntimeLogTargetReset_NULL()
 
#define MkRuntimeLogTargetReset()
 
#define MkRuntimeLogTargetReset_E(...)
 
#define MkRuntimeLogTargetReset_C(...)
 
#define MkRuntimeLogTargetSet_NULL(...)
 
#define MkRuntimeLogTargetSet(...)
 
#define MkRuntimeLogTargetSet_E(...)
 
#define MkRuntimeLogTargetSet_C(...)
 
#define MkRuntimeNoDecoSet_NULL(...)
 
#define MkRuntimeNoDecoSet(...)
 

Detailed Description

MkRuntimeC - various functions to configure the MkRuntimeRLS (only C) …

The MkRuntimeRLS-configuration belongs to a single MkRuntimeRLS. In a threadable application, each thread has its own MkRuntimeRLS and therefore its own configuration.

A function ending in 'I' is the inline variant of the function without the 'I' and is preferred in C.

Macro Definition Documentation

◆ MkRuntimeErrorGetCode

#define MkRuntimeErrorGetCode ( )
Value:
static enum MkErrorE MkRuntimeErrorGetCode_RT(MK_RT mkrt)
return MkErrorS::code from a given MkRuntimeC …
#define MK_RT_CALL_ONLY

Definition at line 1856 of file kernel_overload_mk.h.

◆ MkRuntimeErrorGetCode_C

#define MkRuntimeErrorGetCode_C ( ...)
Value:
#define MkErrorCheckI(err)
#define MkRuntimeErrorGetCode()

Definition at line 1858 of file kernel_overload_mk.h.

◆ MkRuntimeErrorGetCode_E

#define MkRuntimeErrorGetCode_E ( ...)
Value:
#define MkErrorCheck(err)
check return-code and goto error on error …

Definition at line 1857 of file kernel_overload_mk.h.

◆ MkRuntimeErrorGetCode_NULL

#define MkRuntimeErrorGetCode_NULL ( )
Value:

Definition at line 1855 of file kernel_overload_mk.h.

◆ MkRuntimeIsSilentSet

#define MkRuntimeIsSilentSet ( ...)
Value:
static void MkRuntimeIsSilentSet_RT(MK_RT mkrt, bool silent)
set the MkRuntimeS::isSilent value …
#define MK_RT_CALL

Definition at line 1860 of file kernel_overload_mk.h.

◆ MkRuntimeIsSilentSet_NULL

#define MkRuntimeIsSilentSet_NULL ( ...)
Value:
#define MK_RT_CALL_NULL

Definition at line 1859 of file kernel_overload_mk.h.

◆ MkRuntimeLogBufferPop

#define MkRuntimeLogBufferPop ( )
Value:
void MkRuntimeLogTargetPop_RT(MK_RT mkrt, MkLogDataS logOld)

Definition at line 12761 of file LibMkKernel_mk.h.

◆ MkRuntimeLogBufferPush

#define MkRuntimeLogBufferPush ( )
Value:
MkLogDataS MkRuntimeLogTargetPush_RT(MK_RT mkrt, MK_STRN logTgt)
struct to hold the mkrt-logging-data …

Definition at line 12752 of file LibMkKernel_mk.h.

◆ MkRuntimeLogTargetReset

#define MkRuntimeLogTargetReset ( )
Value:
enum MkErrorE MkRuntimeLogTargetReset_RT(MK_RT mkrt)
set the MkRuntimeS::log value to the DEFAULT value …

Definition at line 1862 of file kernel_overload_mk.h.

◆ MkRuntimeLogTargetReset_C

#define MkRuntimeLogTargetReset_C ( ...)
Value:
#define MkRuntimeLogTargetReset()

Definition at line 1864 of file kernel_overload_mk.h.

◆ MkRuntimeLogTargetReset_E

#define MkRuntimeLogTargetReset_E ( ...)
Value:

Definition at line 1863 of file kernel_overload_mk.h.

◆ MkRuntimeLogTargetReset_NULL

#define MkRuntimeLogTargetReset_NULL ( )

◆ MkRuntimeLogTargetSet

#define MkRuntimeLogTargetSet ( ...)
Value:
enum MkErrorE MkRuntimeLogTargetSet_RT(MK_RT mkrt, MK_STRN logTgt)
set the MkRuntimeS::log value and cleanup old value …

Definition at line 1866 of file kernel_overload_mk.h.

◆ MkRuntimeLogTargetSet_C

#define MkRuntimeLogTargetSet_C ( ...)
Value:
#define MkRuntimeLogTargetSet(...)

Definition at line 1868 of file kernel_overload_mk.h.

◆ MkRuntimeLogTargetSet_E

#define MkRuntimeLogTargetSet_E ( ...)
Value:

Definition at line 1867 of file kernel_overload_mk.h.

◆ MkRuntimeLogTargetSet_NULL

#define MkRuntimeLogTargetSet_NULL ( ...)
Value:

Definition at line 1865 of file kernel_overload_mk.h.

◆ MkRuntimeNoDecoSet

#define MkRuntimeNoDecoSet ( ...)
Value:
static void MkRuntimeNoDecoSet_RT(MK_RT mkrt, bool noDeco)
set the MkRuntimeS::noDeco value …

Definition at line 1870 of file kernel_overload_mk.h.

◆ MkRuntimeNoDecoSet_NULL

#define MkRuntimeNoDecoSet_NULL ( ...)
Value:

Definition at line 1869 of file kernel_overload_mk.h.

Function Documentation

◆ MkRuntimeDebugGet()

static MK_I32 MkRuntimeDebugGet ( void )
inlinestatic

get the MkRuntimeS::debug value …

Definition at line 12710 of file LibMkKernel_mk.h.

12710 {
12711 return MkRuntimeRLS.debug;
12712}
__thread struct MkRuntimeS MkRuntimeRLS
RLS …
MK_I32 debug
set the debug-level of the context … Valid values are 0 <= debug-level <= 9 using 0 for no-debug and ...

◆ MkRuntimeDebugGetP()

MK_I32 MkRuntimeDebugGetP ( void )

Non-inline replacement for MkRuntimeDebugGet

◆ MkRuntimeDebugSet()

static void MkRuntimeDebugSet ( MK_I32 dbg)
inlinestatic

set the MkRuntimeS::debug value …

Definition at line 12716 of file LibMkKernel_mk.h.

12716 {
12717 MkRuntimeRLS.debug = dbg;
12718}

◆ MkRuntimeDebugSetP()

void MkRuntimeDebugSetP ( MK_I32 dbg)

Non-inline replacement for MkRuntimeDebugSet

◆ MkRuntimeErrorGetCode_RT()

static enum MkErrorE MkRuntimeErrorGetCode_RT ( MK_RT mkrt)
inlinestatic

return MkErrorS::code from a given MkRuntimeC

Definition at line 12770 of file LibMkKernel_mk.h.

12772 {
12774 return MkERROR_RT.code;
12775}
#define MkERROR_RT
#define MK_STATIC_RT

◆ MkRuntimeErrorGetCodeP()

enum MkErrorE MkRuntimeErrorGetCodeP ( MK_RT mkrt)

Non-inline replacement for MkRuntimeErrorGetCode

◆ MkRuntimeGetFromObjP()

MK_RT MkRuntimeGetFromObjP ( MK_OBJ obj)

Non-inline replacement for MkRuntimeGetFromObj

◆ MkRuntimeGetP()

MK_RT MkRuntimeGetP ( void )

Non-inline replacement for MkRuntimeGet

◆ MkRuntimeIsSilentGet()

static bool MkRuntimeIsSilentGet ( void )
inlinestatic

get the MkRuntimeS::isSilent value …

Definition at line 12696 of file LibMkKernel_mk.h.

12696 {
12697 return MkRuntimeRLS.isSilent;
12698}
bool isSilent
write (MK_NO) or don't write (MK_YES) any message to MkLogFileC (default: stderr) (default: MK_NO) …

◆ MkRuntimeIsSilentGetP()

MK_BOOL MkRuntimeIsSilentGetP ( void )

Non-inline replacement for MkRuntimeIsSilentGet

◆ MkRuntimeIsSilentSet_RT()

static void MkRuntimeIsSilentSet_RT ( MK_RT mkrt,
bool silent )
inlinestatic

set the MkRuntimeS::isSilent value …

Definition at line 13585 of file LibMkKernel_mk.h.

13585 {
13587 MkDCheck(1) {
13589 MkLogC(MK_ERROR_FORMAT, "Attention: set 'silient'\n", 1, __func__);
13592 }
13593 MkRuntimeRLS.isSilent = silent;
13594};
#define MK_ERROR_FORMAT
#define MkDCheck(_debug)
#define MkLogC(...)
#define MkSysPrintStackTrace_2(fmtobj, debug)
#define MkRuntimeLogBufferPush()
#define MkRuntimeLogBufferPop()

◆ MkRuntimeIsSilentSetP()

void MkRuntimeIsSilentSetP ( MK_RT mkrt,
MK_BOOL silent )

Non-inline replacement for MkRuntimeIsSilentSet

◆ MkRuntimeLogTargetGet()

static MK_STRN MkRuntimeLogTargetGet ( void )
inlinestatic

get the MkLogDataS::logNAME value …

Attention
the string is owned by libmkkernel -> do not free !!

Definition at line 12724 of file LibMkKernel_mk.h.

12724 {
12725 return MkRuntimeRLS.log.logNAME;
12726}
char logNAME[MkLogDataS_LogNAME_size]
MkLogDataS log
struct to hold the mkrt-logging-data …

◆ MkRuntimeLogTargetGetP()

MK_STRN MkRuntimeLogTargetGetP ( void )

Non-inline replacement for MkRuntimeLogTargetGet

◆ MkRuntimeLogTargetPop_RT()

void MkRuntimeLogTargetPop_RT ( MK_RT mkrt,
MkLogDataS logOld )

◆ MkRuntimeLogTargetPush_RT()

MkLogDataS MkRuntimeLogTargetPush_RT ( MK_RT mkrt,
MK_STRN logTgt )

◆ MkRuntimeLogTargetReset_RT()

enum MkErrorE MkRuntimeLogTargetReset_RT ( MK_RT mkrt)

set the MkRuntimeS::log value to the DEFAULT value …

See also
MkRuntimeLogTargetSet

◆ MkRuntimeLogTargetSet_RT()

enum MkErrorE MkRuntimeLogTargetSet_RT ( MK_RT mkrt,
MK_STRN logTgt )

set the MkRuntimeS::log value and cleanup old value …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]logTgtone of: STDERR ("",NULL,default), STDOUT, BUFFER, filename

◆ MkRuntimeNoDecoSet_RT()

static void MkRuntimeNoDecoSet_RT ( MK_RT mkrt,
bool noDeco )
inlinestatic

set the MkRuntimeS::noDeco value …

Definition at line 13598 of file LibMkKernel_mk.h.

13598 {
13600 MkRuntimeRLS.noDeco = noDeco;
13601};
bool noDeco
do not use decoration to generate log messages (default: use decoration) …

◆ MkRuntimeNoDecoSetP()

void MkRuntimeNoDecoSetP ( MK_RT mkrt,
MK_BOOL noDeco )

Non-inline replacement for MkRuntimeNoDecoSet

◆ MkRuntimeSetCID()

void MkRuntimeSetCID ( MK_OBJ const cid)

CID == context-in-duty.