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

MkRuntimeC - MkRuntimeC_Config_C_API - function

MK_EXTERN MK_I32 MkRuntimeGetDebugP (void)
 Non-inline replacement for MkRuntimeGetDebug
 
MK_EXTERN MK_BOOL MkRuntimeGetIsSilentP (void)
 Non-inline replacement for MkRuntimeGetIsSilent
 
MK_EXTERN MK_STRN MkRuntimeGetLogfileP (void)
 Non-inline replacement for MkRuntimeGetLogfile
 
MK_EXTERN void MkRuntimeSetDebugP (MK_I32 dbg)
 Non-inline replacement for MkRuntimeSetDebug
 
MK_EXTERN void MkRuntimeSetIsSilentP (MK_BOOL silent)
 Non-inline replacement for MkRuntimeSetIsSilent
 

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:
MK_EXTERN enum MkErrorE MkRuntimeSetLogfile_RT(MK_RT const mkrt, MK_STRN logfile)
set the MkRuntimeS::logfile value and cleanup old value …
#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:
#define MK_RT_CALL_NULL

Definition at line 1731 of file kernel_overload_mk.h.

Function Documentation

◆ MkRuntimeGetDebug()

MK_I32 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 ...

◆ MkRuntimeGetDebugP()

MK_EXTERN MK_I32 MkRuntimeGetDebugP ( void )

Non-inline replacement for MkRuntimeGetDebug

◆ MkRuntimeGetIsSilent()

bool 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 (MK_NO) or don't write (MK_YES) any message to MkLogFileC (default: stderr) (default: MK_NO) …

◆ MkRuntimeGetIsSilentP()

MK_EXTERN MK_BOOL MkRuntimeGetIsSilentP ( void )

Non-inline replacement for MkRuntimeGetIsSilent

◆ MkRuntimeGetLogfile()

MK_STRN MkRuntimeGetLogfile ( void )
inline

get the MkRuntimeS::logfile value …

Attention
the string is owned by libmkkernel -> 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)

◆ MkRuntimeGetLogfileP()

MK_EXTERN MK_STRN MkRuntimeGetLogfileP ( void )

Non-inline replacement for MkRuntimeGetLogfile

◆ MkRuntimeSetCID()

MK_EXTERN void MkRuntimeSetCID ( MK_OBJ const cid)

CID == context-in-duty.

◆ MkRuntimeSetDebug()

void 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};

◆ MkRuntimeSetDebugP()

MK_EXTERN void MkRuntimeSetDebugP ( MK_I32 dbg)

Non-inline replacement for MkRuntimeSetDebug

◆ MkRuntimeSetIsSilent()

void 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

◆ MkRuntimeSetIsSilentP()

MK_EXTERN void MkRuntimeSetIsSilentP ( MK_BOOL silent)

Non-inline replacement for MkRuntimeSetIsSilent

◆ MkRuntimeSetLogfile_RT()

MK_EXTERN enum MkErrorE 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 ""