libmkkernel 9.0
Loading...
Searching...
No Matches
Functions
MkRuntimeC_Config_C_API

only C - various functions to configure the MkRuntimeCMore...

+ 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_INT MkRuntimeGetDebug (void)
 get the MkRuntimeS::debug value …
 
void MkRuntimeSetDebug (MK_INT 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.
 
MK_EXTERN void MkRuntimeDebug (MK_RT mkrt, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_INT const lvl)
 log the MkRuntimeC
 

Overload

#define MkRuntimeDebug_4(fmtobj, debug, callfunc, lvl)   MkRuntimeDebug(MK_RT_PTR,fmtobj,debug,callfunc,lvl)
 
#define MkRuntimeDebug_3(fmtobj, debug, callfunc)   MkRuntimeDebug(MK_RT_PTR,fmtobj,debug,callfunc,0)
 
#define MkRuntimeDebug_2(fmtobj, debug)   MkRuntimeDebug(MK_RT_PTR,fmtobj,debug,__func__,0)
 
#define MkRuntimeDebug_1(fmtobj)   MkRuntimeDebug(MK_RT_PTR,fmtobj,0,__func__,0)
 
#define MkRuntimeDebug_0()   MkRuntimeDebug(MK_RT_PTR,NULL,0,__func__,0)
 
#define MkRuntimeSetLogfile(...)   MkRuntimeSetLogfile_RT(MK_RT_CALL __VA_ARGS__)
 
#define MkRuntimeSetLogfile_E(...)   MkErrorCheck(MkRuntimeSetLogfile(__VA_ARGS__))
 
#define MkRuntimeSetLogfile_C(...)   if (MkErrorCheckI(MkRuntimeSetLogfile(__VA_ARGS__)))
 

Detailed Description

only C - various functions to configure the MkRuntimeC

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

◆ MkRuntimeDebug_0

#define MkRuntimeDebug_0 ( )    MkRuntimeDebug(MK_RT_PTR,NULL,0,__func__,0)

Definition at line 1461 of file kernel_overload_mk.h.

◆ MkRuntimeDebug_1

#define MkRuntimeDebug_1 (   fmtobj)    MkRuntimeDebug(MK_RT_PTR,fmtobj,0,__func__,0)

Definition at line 1460 of file kernel_overload_mk.h.

◆ MkRuntimeDebug_2

#define MkRuntimeDebug_2 (   fmtobj,
  debug 
)    MkRuntimeDebug(MK_RT_PTR,fmtobj,debug,__func__,0)

Definition at line 1459 of file kernel_overload_mk.h.

◆ MkRuntimeDebug_3

#define MkRuntimeDebug_3 (   fmtobj,
  debug,
  callfunc 
)    MkRuntimeDebug(MK_RT_PTR,fmtobj,debug,callfunc,0)

Definition at line 1458 of file kernel_overload_mk.h.

◆ MkRuntimeDebug_4

#define MkRuntimeDebug_4 (   fmtobj,
  debug,
  callfunc,
  lvl 
)    MkRuntimeDebug(MK_RT_PTR,fmtobj,debug,callfunc,lvl)

Definition at line 1457 of file kernel_overload_mk.h.

◆ MkRuntimeSetLogfile

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

Definition at line 1462 of file kernel_overload_mk.h.

◆ MkRuntimeSetLogfile_C

#define MkRuntimeSetLogfile_C (   ...)    if (MkErrorCheckI(MkRuntimeSetLogfile(__VA_ARGS__)))

Definition at line 1464 of file kernel_overload_mk.h.

◆ MkRuntimeSetLogfile_E

#define MkRuntimeSetLogfile_E (   ...)    MkErrorCheck(MkRuntimeSetLogfile(__VA_ARGS__))

Definition at line 1463 of file kernel_overload_mk.h.

Function Documentation

◆ MkRuntimeDebug()

MK_EXTERN void MkRuntimeDebug ( MK_RT  mkrt,
MK_OBJN  fmtobj,
MK_DBG const  debug,
MK_STRN const  callfunc,
MK_INT const  lvl 
)

log the MkRuntimeC

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]fmtobjmanaged object used to format the log-message (default=NULL = use default format)
[in]debugthe debug level from MkRuntimeS::debug, use 0 <= debug <= 9 (default=0)
[in]callfunca user-defined postfix to identify the calling function or the environment (default=name-of-function)
[in]lvla user-defined prefix starting with "" for lvl=0 and increase with " " for lvl+1 (default=0)
See also
MkRuntimeC

◆ MkRuntimeGetDebug()

MK_INT MkRuntimeGetDebug ( void  )
inline

get the MkRuntimeS::debug value …

Definition at line 12982 of file kernel_mk.h.

◆ MkRuntimeGetIsSilent()

bool MkRuntimeGetIsSilent ( void  )
inline

get the MkRuntimeS::isSilent value …

Definition at line 12970 of file kernel_mk.h.

◆ MkRuntimeGetLogfile()

MK_STRN MkRuntimeGetLogfile ( void  )
inline

get the MkRuntimeS::logfile value …

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

Definition at line 12994 of file kernel_mk.h.

◆ MkRuntimeSetCID()

MK_EXTERN void MkRuntimeSetCID ( MK_OBJ const  cid)

CID == context-in-duty.

◆ MkRuntimeSetDebug()

void MkRuntimeSetDebug ( MK_INT  dbg)
inline

set the MkRuntimeS::debug value …

Definition at line 12987 of file kernel_mk.h.

◆ MkRuntimeSetIsSilent()

void MkRuntimeSetIsSilent ( bool  silent)
inline

set the MkRuntimeS::isSilent value …

Definition at line 12975 of file kernel_mk.h.

◆ 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 NULL or ""