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

static bool MkRuntimeGetIsSilent (void)
 get the MkRuntimeS::isSilent value …
 
static void MkRuntimeSetIsSilent_RT (MK_RT mkrt, bool silent)
 set the MkRuntimeS::isSilent value …
 
static MK_I32 MkRuntimeGetDebug (void)
 get the MkRuntimeS::debug value …
 
static void MkRuntimeSetDebug (MK_I32 dbg)
 set the MkRuntimeS::debug value …
 
static MK_STRN MkRuntimeGetLogfile (void)
 get the MkRuntimeS::logfile value …
 
enum MkErrorE MkRuntimeSetLogfile_RT (MK_RT mkrt, MK_STRN logfile)
 set the MkRuntimeS::logfile value and cleanup old value …
 
void MkRuntimeSetCID (MK_OBJ const cid)
 CID == context-in-duty.
 
static enum MkErrorE MkRuntimeGetErrorCode_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 MkRuntimeGetDebugP (void)
 Non-inline replacement for MkRuntimeGetDebug
 
enum MkErrorE MkRuntimeGetErrorCodeP (MK_RT mkrt)
 Non-inline replacement for MkRuntimeGetErrorCode
 
MK_BOOL MkRuntimeGetIsSilentP (void)
 Non-inline replacement for MkRuntimeGetIsSilent
 
MK_STRN MkRuntimeGetLogfileP (void)
 Non-inline replacement for MkRuntimeGetLogfile
 
void MkRuntimeSetDebugP (MK_I32 dbg)
 Non-inline replacement for MkRuntimeSetDebug
 
void MkRuntimeSetIsSilentP (MK_RT mkrt, MK_BOOL silent)
 Non-inline replacement for MkRuntimeSetIsSilent
 

MkRuntimeC - MkRuntimeC_Config_C_API - overload

#define MkRuntimeGetErrorCode_NULL()
 
#define MkRuntimeGetErrorCode()
 
#define MkRuntimeGetErrorCode_E(...)
 
#define MkRuntimeGetErrorCode_C(...)
 
#define MkRuntimeSetIsSilent_NULL(...)
 
#define MkRuntimeSetIsSilent(...)
 
#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

◆ MkRuntimeGetErrorCode

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

Definition at line 1820 of file kernel_overload_mk.h.

◆ MkRuntimeGetErrorCode_C

#define MkRuntimeGetErrorCode_C ( ...)
Value:
#define MkErrorCheckI(err)
#define MkRuntimeGetErrorCode()

Definition at line 1822 of file kernel_overload_mk.h.

◆ MkRuntimeGetErrorCode_E

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

Definition at line 1821 of file kernel_overload_mk.h.

◆ MkRuntimeGetErrorCode_NULL

#define MkRuntimeGetErrorCode_NULL ( )
Value:

Definition at line 1819 of file kernel_overload_mk.h.

◆ MkRuntimeSetIsSilent

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

Definition at line 1824 of file kernel_overload_mk.h.

◆ MkRuntimeSetIsSilent_NULL

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

Definition at line 1823 of file kernel_overload_mk.h.

◆ MkRuntimeSetLogfile

#define MkRuntimeSetLogfile ( ...)
Value:
enum MkErrorE MkRuntimeSetLogfile_RT(MK_RT mkrt, MK_STRN logfile)
set the MkRuntimeS::logfile value and cleanup old value …

Definition at line 1826 of file kernel_overload_mk.h.

◆ MkRuntimeSetLogfile_C

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

Definition at line 1828 of file kernel_overload_mk.h.

◆ MkRuntimeSetLogfile_E

#define MkRuntimeSetLogfile_E ( ...)
Value:

Definition at line 1827 of file kernel_overload_mk.h.

◆ MkRuntimeSetLogfile_NULL

#define MkRuntimeSetLogfile_NULL ( ...)
Value:

Definition at line 1825 of file kernel_overload_mk.h.

Function Documentation

◆ MkRuntimeGetDebug()

static MK_I32 MkRuntimeGetDebug ( void )
inlinestatic

get the MkRuntimeS::debug value …

Definition at line 12204 of file LibMkKernel_mk.h.

12204 {
12205 return MkRuntimeRLS.debug;
12206}
__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 ...

◆ MkRuntimeGetDebugP()

MK_I32 MkRuntimeGetDebugP ( void )

Non-inline replacement for MkRuntimeGetDebug

◆ MkRuntimeGetErrorCode_RT()

static enum MkErrorE MkRuntimeGetErrorCode_RT ( MK_RT mkrt)
inlinestatic

return MkErrorS::code from a given MkRuntimeC

Definition at line 12238 of file LibMkKernel_mk.h.

12240 {
12242 return MkERROR_RT.code;
12243}
#define MkERROR_RT
#define MK_STATIC_RT

◆ MkRuntimeGetErrorCodeP()

enum MkErrorE MkRuntimeGetErrorCodeP ( MK_RT mkrt)

Non-inline replacement for MkRuntimeGetErrorCode

◆ MkRuntimeGetFromObjP()

MK_RT MkRuntimeGetFromObjP ( MK_OBJ obj)

Non-inline replacement for MkRuntimeGetFromObj

◆ MkRuntimeGetIsSilent()

static bool MkRuntimeGetIsSilent ( void )
inlinestatic

get the MkRuntimeS::isSilent value …

Definition at line 12194 of file LibMkKernel_mk.h.

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

◆ MkRuntimeGetIsSilentP()

MK_BOOL MkRuntimeGetIsSilentP ( void )

Non-inline replacement for MkRuntimeGetIsSilent

◆ MkRuntimeGetLogfile()

static MK_STRN MkRuntimeGetLogfile ( void )
inlinestatic

get the MkRuntimeS::logfile value …

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

Definition at line 12218 of file LibMkKernel_mk.h.

12218 {
12220}
static 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_STRN MkRuntimeGetLogfileP ( void )

Non-inline replacement for MkRuntimeGetLogfile

◆ MkRuntimeGetP()

MK_RT MkRuntimeGetP ( void )

Non-inline replacement for MkRuntimeGet

◆ MkRuntimeSetCID()

void MkRuntimeSetCID ( MK_OBJ const cid)

CID == context-in-duty.

◆ MkRuntimeSetDebug()

static void MkRuntimeSetDebug ( MK_I32 dbg)
inlinestatic

set the MkRuntimeS::debug value …

Definition at line 12210 of file LibMkKernel_mk.h.

12210 {
12211 MkRuntimeRLS.debug = dbg;
12212}

◆ MkRuntimeSetDebugP()

void MkRuntimeSetDebugP ( MK_I32 dbg)

Non-inline replacement for MkRuntimeSetDebug

◆ MkRuntimeSetIsSilent_RT()

static void MkRuntimeSetIsSilent_RT ( MK_RT mkrt,
bool silent )
inlinestatic

set the MkRuntimeS::isSilent value …

Definition at line 13047 of file LibMkKernel_mk.h.

13047 {
13049 MkLogC(MK_ERROR_FORMAT, "Attention: set 'silient'\n", 1, __func__);
13050 MkSysPrintTrace(MK_ERROR_FORMAT,0,-1,1,__func__,0);
13051 MkRuntimeRLS.isSilent = silent;
13052};
#define MK_ERROR_FORMAT
#define MkLogC(...)
#define MkSysPrintTrace(...)

◆ MkRuntimeSetIsSilentP()

void MkRuntimeSetIsSilentP ( MK_RT mkrt,
MK_BOOL silent )

Non-inline replacement for MkRuntimeSetIsSilent

◆ MkRuntimeSetLogfile_RT()

enum MkErrorE MkRuntimeSetLogfile_RT ( MK_RT 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 ""