theKernel 10.0
Loading...
Searching...
No Matches
MkTypeC_Misc_C_API

MkTypeS - various functions to work on type-dataMore...

+ Collaboration diagram for MkTypeC_Misc_C_API:

Macros

#define MkTypeLog_2Lvl(t, l, ...)
 
#define MkTypeLoop(_cls, _var)
 

Functions

void libmkkernel::MkTypeLog_RT (MK_RT mkrt, MK_TYPN const typ, MK_OBJN fmtobj, MK_DBG const debug, MK_STRN const callfunc, MK_I32 const lvl)
 log the MkTypeS
 

MkTypeC - MkTypeC_Misc_C_API - overload

#define MkTypeLog_NULL(...)
 
#define MkTypeLog(...)
 
#define MkTypeLog_4(typ, fmtobj, debug, callfunc)
 
#define MkTypeLog_3(typ, fmtobj, debug)
 
#define MkTypeLog_2(typ, fmtobj)
 
#define MkTypeLog_1(typ)
 

Detailed Description

MkTypeS - various functions to work on type-data

Macro Definition Documentation

◆ MkTypeLog

#define MkTypeLog ( ...)
Value:
MkTypeLog_RT(MK_RT_CALL __VA_ARGS__)
#define MK_RT_CALL

Definition at line 1900 of file kernel_overload_mk.h.

◆ MkTypeLog_1

#define MkTypeLog_1 ( typ)
Value:
MkTypeLog(typ,NULL,0,__func__,0)
#define MkTypeLog(...)

Definition at line 1904 of file kernel_overload_mk.h.

◆ MkTypeLog_2

#define MkTypeLog_2 ( typ,
fmtobj )
Value:
MkTypeLog(typ,fmtobj,0,__func__,0)

Definition at line 1903 of file kernel_overload_mk.h.

◆ MkTypeLog_2Lvl

#define MkTypeLog_2Lvl ( t,
l,
... )
Value:
MkTypeLog_RT(MK_RT_CALL (t), __VA_ARGS__, (l)

Definition at line 5169 of file LibMkKernel_mk.h.

◆ MkTypeLog_3

#define MkTypeLog_3 ( typ,
fmtobj,
debug )
Value:
MkTypeLog(typ,fmtobj,debug,__func__,0)

Definition at line 1902 of file kernel_overload_mk.h.

◆ MkTypeLog_4

#define MkTypeLog_4 ( typ,
fmtobj,
debug,
callfunc )
Value:
MkTypeLog(typ,fmtobj,debug,callfunc,0)

Definition at line 1901 of file kernel_overload_mk.h.

◆ MkTypeLog_NULL

#define MkTypeLog_NULL ( ...)
Value:
MkTypeLog_RT(MK_RT_CALL_NULL __VA_ARGS__)
#define MK_RT_CALL_NULL

Definition at line 1899 of file kernel_overload_mk.h.

◆ MkTypeLoop

#define MkTypeLoop ( _cls,
_var )
Value:
for (_cls##_type _var = (_cls##_type)_cls##_TT->type_class->instancesR; _var != NULL; \
_var = (_cls##_type)_cls##_X2obj(_var)->obj_protect.next)

loop over all instances of the specific class cls using variable var

example:

MkTypeLoop(MkBufferC,buf) { MkBufferLog_1(buf); }
#define MkBufferLog_1(buf)
#define MkTypeLoop(_cls, _var)

Definition at line 5190 of file LibMkKernel_mk.h.

5190 #define MkTypeLoop(_cls, _var) \
5191 for (_cls##_type _var = (_cls##_type)_cls##_TT->type_class->instancesR; _var != NULL; \
5192 _var = (_cls##_type)_cls##_X2obj(_var)->obj_protect.next)

Function Documentation

◆ MkTypeLog_RT()

void libmkkernel::MkTypeLog_RT ( MK_RT mkrt,
MK_TYPN const typ,
MK_OBJN fmtobj,
MK_DBG const debug,
MK_STRN const callfunc,
MK_I32 const lvl )

log the MkTypeS

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]typthe MkTypeS instance to work on
[in]fmtobjmanaged object used to format the log-message (default=MK_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, MK_NULL = resolve-own-name)
[in]lvla user-defined prefix starting with "" for lvl=0 and increase with " " for lvl+1 (default=0)
See also
MkObjectC_C_API