theKernel 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard
c - tcl - py - jv - cc
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:

Functions

bool libmkkernel::MkRuntimeGetIsSilent (void)
 get the MkRuntimeS::isSilent value …
 
void libmkkernel::MkRuntimeSetIsSilent (bool silent)
 set the MkRuntimeS::isSilent value …
 
MK_I32 libmkkernel::MkRuntimeGetDebug (void)
 get the MkRuntimeS::debug value …
 
void libmkkernel::MkRuntimeSetDebug (MK_I32 dbg)
 set the MkRuntimeS::debug value …
 
MK_STRN libmkkernel::MkRuntimeGetLogfile (void)
 get the MkRuntimeS::logfile value …
 
MK_EXTERN enum MkErrorE libmkkernel::MkRuntimeSetLogfile_RT (MK_RT const mkrt, MK_STRN logfile)
 set the MkRuntimeS::logfile value and cleanup old value …
 
MK_EXTERN void libmkkernel::MkRuntimeSetCID (MK_OBJ const cid)
 CID == context-in-duty.
 

MkRuntimeC - MkRuntimeC_Config_C_API - overload

#define MkRuntimeSetLogfile_NULL(...)
 
#define MkRuntimeSetLogfile(...)
 
#define MkRuntimeSetLogfile_E(...)
 
#define MkRuntimeSetLogfile_C(...)
 

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

◆ MkRuntimeSetLogfile

#define MkRuntimeSetLogfile ( ...)
Value:
MkRuntimeSetLogfile_RT(MK_RT_CALL __VA_ARGS__)
#define MK_RT_CALL

Definition at line 1732 of file kernel_overload_mk.h.

◆ MkRuntimeSetLogfile_C

#define MkRuntimeSetLogfile_C ( ...)
Value:
#define MkErrorCheckI(err)
#define MkRuntimeSetLogfile(...)

Definition at line 1734 of file kernel_overload_mk.h.

◆ MkRuntimeSetLogfile_E

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

Definition at line 1733 of file kernel_overload_mk.h.

◆ MkRuntimeSetLogfile_NULL

#define MkRuntimeSetLogfile_NULL ( ...)
Value:
MkRuntimeSetLogfile_RT(MK_RT_CALL_NULL __VA_ARGS__)
#define MK_RT_CALL_NULL

Definition at line 1731 of file kernel_overload_mk.h.

Function Documentation

◆ MkRuntimeGetDebug()

MK_I32 libmkkernel::MkRuntimeGetDebug ( void )
inline

get the MkRuntimeS::debug value …

Definition at line 11783 of file LibMkKernel_mk.h.

11783 {
11784 return MkRuntimeRLS.debug;
11785};
MK_EXTERN_DATA MkThreadLocal 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 ...
+ Here is the caller graph for this function:

◆ MkRuntimeGetIsSilent()

bool libmkkernel::MkRuntimeGetIsSilent ( void )
inline

get the MkRuntimeS::isSilent value …

Definition at line 11771 of file LibMkKernel_mk.h.

11771 {
11772 return MkRuntimeRLS.isSilent;
11773}
bool isSilent
write (false) or don't write (true) any message to MkLogFileC (default: stderr) (default: false) …
+ Here is the caller graph for this function:

◆ MkRuntimeGetLogfile()

MK_STRN libmkkernel::MkRuntimeGetLogfile ( void )
inline

get the MkRuntimeS::logfile value …

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

Definition at line 11795 of file LibMkKernel_mk.h.

11795 {
11797};
MK_STRN MkSysStringGetNoNULL(MK_STRN str)
get string "" or VALUE …
MK_STR logfile
append to logfile, valid values are: stderr, stdout or a filename (default: stderr)
+ Here is the caller graph for this function:

◆ MkRuntimeSetCID()

MK_EXTERN void libmkkernel::MkRuntimeSetCID ( MK_OBJ const cid)

CID == context-in-duty.

◆ MkRuntimeSetDebug()

void libmkkernel::MkRuntimeSetDebug ( MK_I32 dbg)
inline

set the MkRuntimeS::debug value …

Definition at line 11788 of file LibMkKernel_mk.h.

11788 {
11789 MkRuntimeRLS.debug = dbg;
11790};
+ Here is the caller graph for this function:

◆ MkRuntimeSetIsSilent()

void libmkkernel::MkRuntimeSetIsSilent ( bool silent)
inline

set the MkRuntimeS::isSilent value …

Definition at line 11776 of file LibMkKernel_mk.h.

11776 {
11778 MkLogC(MK_ERROR_FORMAT, "Attention: set 'silient'\n", 1, __func__);
11779 MkRuntimeRLS.isSilent = silent;
11780};
#define MK_ERROR_FORMAT
#define MkLogC(...)
#define MkRtSetup_NULL
+ Here is the caller graph for this function:

◆ MkRuntimeSetLogfile_RT()

MK_EXTERN enum MkErrorE libmkkernel::MkRuntimeSetLogfile_RT ( MK_RT const mkrt,
MK_STRN logfile )

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

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]logfilefilename, "stdout" or "stderr", default = "stderr" for MK_NULL or ""