theKernel 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard
c - tcl - py - rb - jv - cc
Loading...
Searching...
No Matches
MkErrorC_Raise_C_API

MkErrorC - various functions to 'raise' a MkErrorSMore...

+ Collaboration diagram for MkErrorC_Raise_C_API:

Macros

#define MkPanicVL_5M(errobj, callfunc, errnum, printfmt, var_list)
 
#define MkPanicV_4M(errobj, callfunc, errnum, printfmt, ...)
 
#define MkPanicV_2M(x, printfmt, ...)
 
#define MkPanicC_4M(errobj, callfunc, errnum, message)
 
#define MkPanicC_2M(x, message)
 
#define MkPanicSYS(mngx)
 do a panic with a system error message …
 
#define MkErrorSetC_1XS(message)
 
#define MkErrorSetC_2E_E(caller, message)
 
#define MkErrorSetC_4_NULL(...)
 
#define MkErrorSetC_3_NULL(...)
 
#define MkErrorSetC_2_NULL(msg, pfx)
 
#define MkErrorSetC_1_NULL(msg)
 
#define MkErrorSetC_4M_NULL(m, ...)
 
#define MkErrorSetC_3M_NULL(m, msg, pfx)
 
#define MkErrorSetC_2M_NULL(m, msg)
 
#define MkErrorSetV_4EO_NULL(o, ...)
 
#define MkErrorSetV_4M_NULL(m, ...)
 
#define MkErrorSetV_2M_NULL(m, ...)
 
#define MkErrorSetV_2X(x, ...)
 
#define MkErrorSetV_1_NULL(printfmt, ...)
 
#define MkErrorSetV_1XS(printfmt, ...)
 
#define MkErrorSetV_2E_E(caller, printfmt, ...)
 
#define MkErrorSet_ObjectIsNullError(m, printfmt, ...)
 

Functions

MK_EXTERN void MkPanicVL_RT (MK_RT mkrt, MK_OBJN const errobj, MK_STRN const callfunc, MK_I32 const errnum, MK_FST const printfmt, va_list var_list)
 do a panic with a vararg-list as argument …
 
MK_EXTERN void MkPanicV_RT (MK_RT mkrt, MK_OBJN const errobj, MK_STRN const callfunc, MK_I32 const errnum, MK_FST const printfmt,...)
 do a panic with a vararg as argument …
 
MK_EXTERN void MkPanicC_RT (MK_RT mkrt, MK_OBJN const errobj, MK_STRN const callfunc, MK_I32 const errnum, MK_STRN const message)
 do a panic with string as argument …
 
MK_EXTERN void MkDisasterSignal (MK_I32 signal)
 called if something get REALLY wrong …
 
MK_EXTERN void MkErrorAppendVL_RT (MK_RT mkrt, MK_ERR const err, MK_FST const printfmt, va_list var_list)
 append a va_list string to the MkErrorC
 
MK_EXTERN void MkErrorAppendV_RT (MK_RT mkrt, MK_ERR const err, MK_FST const printfmt,...)
 append a vararg string to the MkErrorC
 
MK_EXTERN void MkErrorAppendC_RT (MK_RT mkrt, MK_ERR const err, MK_STRN const message)
 append the message to the MkErrorS::text
 
MK_EXTERN MK_ERR MkErrorNoRaise_RT (MK_RT mkrt, MK_ERR const err)
 ignore the next return of MK_ERROR and do not raise an target-language-exception
 
MK_EXTERN enum MkErrorE MkErrorSetR_RT (MK_RT mkrt, MK_ERR const err, MK_STRN const message, enum MkErrorE const errcode, MK_I32 const errnum, MK_MNG const errctx)
 set the MkErrorC and raise the error …
 
MK_EXTERN enum MkErrorE MkErrorSetE_RT (MK_RT mkrt, MK_ERR const err, MK_ERR const newerr)
 set the MkErrorC from a MkErrorC copy and raise an error …
 
MK_EXTERN enum MkErrorE MkErrorSetC_RT (MK_RT mkrt, MK_ERR err, MK_STRN const message, MK_STRN const callfunc, MK_I32 const errnum)
 'set' and 'raise' the MkErrorC using a string-message and a errnum-number
 
MK_EXTERN enum MkErrorE MkErrorSetVL_RT (MK_RT mkrt, MK_ERR err, MK_STRN const callfunc, MK_I32 const errnum, MK_FST const printfmt, va_list var_list)
 'set' and 'raise' the MkErrorC using a vararg-list message …
 
MK_EXTERN enum MkErrorE MkErrorSetV_RT (MK_RT mkrt, MK_ERR err, MK_STRN const callfunc, MK_I32 const errnum, MK_FST const printfmt,...)
 set the MkErrorS object using a format string argument list and raise an error …
 

MkErrorC - MkErrorC_Raise_C_API - overload

#define MkErrorNoRaise_NULL(...)
 
#define MkErrorNoRaise(...)
 
#define MkErrorNoRaise_0E()
 
#define MkErrorNoRaise_1M(m)
 
#define MkErrorAppendC_NULL(...)
 
#define MkErrorAppendC(...)
 
#define MkErrorAppendC_1E(...)
 
#define MkErrorAppendC_2M(m, ...)
 
#define MkErrorAppendV_NULL(...)
 
#define MkErrorAppendV(...)
 
#define MkErrorAppendV_1E(...)
 
#define MkErrorAppendV_2M(m, ...)
 
#define MkErrorAppendVL_NULL(...)
 
#define MkErrorAppendVL(...)
 
#define MkErrorAppendVL_2E(...)
 
#define MkErrorAppendVL_3M(m, ...)
 
#define MkErrorRaise_NULL(...)
 
#define MkErrorRaise(...)
 
#define MkErrorRaise_0E()
 
#define MkErrorRaise_1M(m)
 
#define MkErrorRaise_E(...)
 
#define MkErrorRaise_C(...)
 
#define MkErrorSetC_NULL(...)
 
#define MkErrorSetC(...)
 
#define MkErrorSetC_3E(...)
 
#define MkErrorSetC_4M(m, ...)
 
#define MkErrorSetC_3(err, message, callfunc)
 
#define MkErrorSetC_2E(message, callfunc)
 
#define MkErrorSetC_3M(err, message, callfunc)
 
#define MkErrorSetC_2(err, message)
 
#define MkErrorSetC_1E(message)
 
#define MkErrorSetC_2M(err, message)
 
#define MkErrorSetC_E(...)
 
#define MkErrorSetC_C(...)
 
#define MkErrorSetE_NULL(...)
 
#define MkErrorSetE(...)
 
#define MkErrorSetE_1E(...)
 
#define MkErrorSetE_2M(m, ...)
 
#define MkErrorSetE_E(...)
 
#define MkErrorSetE_C(...)
 
#define MkErrorSetR_NULL(...)
 
#define MkErrorSetR(...)
 
#define MkErrorSetR_4E(...)
 
#define MkErrorSetR_5M(m, ...)
 
#define MkErrorSetR_4(err, message, errcode, errnum)
 
#define MkErrorSetR_3E(message, errcode, errnum)
 
#define MkErrorSetR_4M(err, message, errcode, errnum)
 
#define MkErrorSetR_3(err, message, errcode)
 
#define MkErrorSetR_2E(message, errcode)
 
#define MkErrorSetR_3M(err, message, errcode)
 
#define MkErrorSetR_2(err, message)
 
#define MkErrorSetR_1E(message)
 
#define MkErrorSetR_2M(err, message)
 
#define MkErrorSetR_E(...)
 
#define MkErrorSetR_C(...)
 
#define MkErrorSetV_NULL(...)
 
#define MkErrorSetV(...)
 
#define MkErrorSetV_3E(...)
 
#define MkErrorSetV_4M(m, ...)
 
#define MkErrorSetV_3(err, callfunc, printfmt, ...)
 
#define MkErrorSetV_2E(callfunc, printfmt, ...)
 
#define MkErrorSetV_3M(err, callfunc, printfmt, ...)
 
#define MkErrorSetV_2(err, printfmt, ...)
 
#define MkErrorSetV_1E(printfmt, ...)
 
#define MkErrorSetV_2M(err, printfmt, ...)
 
#define MkErrorSetV_E(...)
 
#define MkErrorSetV_C(...)
 
#define MkErrorSetVL_NULL(...)
 
#define MkErrorSetVL(...)
 
#define MkErrorSetVL_4E(...)
 
#define MkErrorSetVL_5M(m, ...)
 
#define MkErrorSetVL_4(err, callfunc, printfmt, var_list)
 
#define MkErrorSetVL_3E(callfunc, printfmt, var_list)
 
#define MkErrorSetVL_4M(err, callfunc, printfmt, var_list)
 
#define MkErrorSetVL_3(err, printfmt, var_list)
 
#define MkErrorSetVL_2E(printfmt, var_list)
 
#define MkErrorSetVL_3M(err, printfmt, var_list)
 
#define MkErrorSetVL_E(...)
 
#define MkErrorSetVL_C(...)
 
#define MkPanicC_NULL(...)
 
#define MkPanicC(...)
 
#define MkPanicC_3(errobj, callfunc, message)
 
#define MkPanicC_2(errobj, message)
 
#define MkPanicC_1(message)
 
#define MkPanicV_NULL(...)
 
#define MkPanicV(...)
 
#define MkPanicV_3(errobj, callfunc, printfmt, ...)
 
#define MkPanicV_2(errobj, printfmt, ...)
 
#define MkPanicV_1(printfmt, ...)
 
#define MkPanicVL_NULL(...)
 
#define MkPanicVL(...)
 
#define MkPanicVL_4(errobj, callfunc, printfmt, var_list)
 
#define MkPanicVL_3(errobj, printfmt, var_list)
 
#define MkPanicVL_2(printfmt, var_list)
 

Detailed Description

MkErrorC - various functions to 'raise' a MkErrorS

An error is "raised" by naming the MkErrorS::text and changing the MkErrorS::code to MK_ERROR.

Macro Definition Documentation

◆ MkErrorAppendC

#define MkErrorAppendC ( ...)
Value:
MK_EXTERN void MkErrorAppendC_RT(MK_RT mkrt, MK_ERR const err, MK_STRN const message)
append the message to the MkErrorS::text …
#define MK_RT_CALL

Definition at line 1099 of file kernel_overload_mk.h.

◆ MkErrorAppendC_1E

#define MkErrorAppendC_1E ( ...)
Value:
MkErrorAppendC(&MkERROR,__VA_ARGS__)
#define MkErrorAppendC(...)
#define MkERROR

Definition at line 1100 of file kernel_overload_mk.h.

◆ MkErrorAppendC_2M

#define MkErrorAppendC_2M ( m,
... )
Value:
#define MkErrorFORMAT_1M(m)

Definition at line 1101 of file kernel_overload_mk.h.

◆ MkErrorAppendC_NULL

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

Definition at line 1098 of file kernel_overload_mk.h.

◆ MkErrorAppendV

#define MkErrorAppendV ( ...)
Value:
MK_EXTERN void MkErrorAppendV_RT(MK_RT mkrt, MK_ERR const err, MK_FST const printfmt,...)
append a vararg string to the MkErrorC …

Definition at line 1103 of file kernel_overload_mk.h.

◆ MkErrorAppendV_1E

#define MkErrorAppendV_1E ( ...)
Value:
MkErrorAppendV(&MkERROR,__VA_ARGS__)
#define MkErrorAppendV(...)

Definition at line 1104 of file kernel_overload_mk.h.

◆ MkErrorAppendV_2M

#define MkErrorAppendV_2M ( m,
... )
Value:

Definition at line 1105 of file kernel_overload_mk.h.

◆ MkErrorAppendV_NULL

#define MkErrorAppendV_NULL ( ...)
Value:

Definition at line 1102 of file kernel_overload_mk.h.

◆ MkErrorAppendVL

#define MkErrorAppendVL ( ...)
Value:
MK_EXTERN void MkErrorAppendVL_RT(MK_RT mkrt, MK_ERR const err, MK_FST const printfmt, va_list var_list)
append a va_list string to the MkErrorC …

Definition at line 1107 of file kernel_overload_mk.h.

◆ MkErrorAppendVL_2E

#define MkErrorAppendVL_2E ( ...)
Value:
MkErrorAppendVL(&MkERROR,__VA_ARGS__)
#define MkErrorAppendVL(...)

Definition at line 1108 of file kernel_overload_mk.h.

◆ MkErrorAppendVL_3M

#define MkErrorAppendVL_3M ( m,
... )
Value:

Definition at line 1109 of file kernel_overload_mk.h.

◆ MkErrorAppendVL_NULL

#define MkErrorAppendVL_NULL ( ...)
Value:

Definition at line 1106 of file kernel_overload_mk.h.

◆ MkErrorNoRaise

#define MkErrorNoRaise ( ...)
Value:
MK_EXTERN MK_ERR MkErrorNoRaise_RT(MK_RT mkrt, MK_ERR const err)
ignore the next return of MK_ERROR and do not raise an target-language-exception …

Definition at line 1093 of file kernel_overload_mk.h.

◆ MkErrorNoRaise_0E

#define MkErrorNoRaise_0E ( )
Value:
#define MkErrorNoRaise(...)

Definition at line 1094 of file kernel_overload_mk.h.

◆ MkErrorNoRaise_1M

#define MkErrorNoRaise_1M ( m)
Value:

Definition at line 1095 of file kernel_overload_mk.h.

◆ MkErrorNoRaise_NULL

#define MkErrorNoRaise_NULL ( ...)
Value:

Definition at line 1092 of file kernel_overload_mk.h.

◆ MkErrorRaise

#define MkErrorRaise ( ...)
Value:
MK_EXTERN enum MkErrorE MkErrorRaise_RT(MK_RT mkrt, MK_ERRN const err)
convert an libmkkernel error into an programming-language-error and raise afterwards....

Definition at line 1111 of file kernel_overload_mk.h.

◆ MkErrorRaise_0E

#define MkErrorRaise_0E ( )
Value:
#define MkErrorRaise(...)

Definition at line 1112 of file kernel_overload_mk.h.

◆ MkErrorRaise_1M

#define MkErrorRaise_1M ( m)
Value:

Definition at line 1113 of file kernel_overload_mk.h.

◆ MkErrorRaise_C

#define MkErrorRaise_C ( ...)
Value:
if (MkErrorCheckI(MkErrorRaise(__VA_ARGS__)))
#define MkErrorCheckI(err)

Definition at line 1115 of file kernel_overload_mk.h.

◆ MkErrorRaise_E

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

Definition at line 1114 of file kernel_overload_mk.h.

◆ MkErrorRaise_NULL

#define MkErrorRaise_NULL ( ...)
Value:

Definition at line 1110 of file kernel_overload_mk.h.

◆ MkErrorSet_ObjectIsNullError

#define MkErrorSet_ObjectIsNullError ( m,
printfmt,
... )
Value:
MkErrorSetV_4M(m,"ObjectIsNullError",-1,printfmt,__VA_ARGS__)
#define MkErrorSetV_4M(m,...)

Definition at line 10776 of file LibMkKernel_mk.h.

10776#define MkErrorSet_ObjectIsNullError(m,printfmt,...) \
10777 MkErrorSetV_4M(m,"ObjectIsNullError",-1,printfmt,__VA_ARGS__)

◆ MkErrorSetC

#define MkErrorSetC ( ...)
Value:
MK_EXTERN enum MkErrorE MkErrorSetC_RT(MK_RT mkrt, MK_ERR err, MK_STRN const message, MK_STRN const callfunc, MK_I32 const errnum)
'set' and 'raise' the MkErrorC using a string-message and a errnum-number …

Definition at line 1117 of file kernel_overload_mk.h.

◆ MkErrorSetC_1_NULL

#define MkErrorSetC_1_NULL ( msg)
Value:
MkErrorSetC_3_NULL(msg,__func__,-1)
#define MkErrorSetC_3_NULL(...)

Definition at line 10711 of file LibMkKernel_mk.h.

◆ MkErrorSetC_1E

#define MkErrorSetC_1E ( message)
Value:
MkErrorSetC_3E(message,__func__,-1)
#define MkErrorSetC_3E(...)

Definition at line 1124 of file kernel_overload_mk.h.

◆ MkErrorSetC_1XS

#define MkErrorSetC_1XS ( message)
Value:
MkErrorSetC_4M(META_CONTEXT_S,message,__func__,-1)
#define MkErrorSetC_4M(m,...)

Definition at line 10705 of file LibMkKernel_mk.h.

◆ MkErrorSetC_2

#define MkErrorSetC_2 ( err,
message )
Value:
MkErrorSetC(err,message,__func__,-1)
#define MkErrorSetC(...)

Definition at line 1123 of file kernel_overload_mk.h.

◆ MkErrorSetC_2_NULL

#define MkErrorSetC_2_NULL ( msg,
pfx )
Value:
MkErrorSetC_3_NULL(msg,pfx,-1)

Definition at line 10710 of file LibMkKernel_mk.h.

◆ MkErrorSetC_2E

#define MkErrorSetC_2E ( message,
callfunc )
Value:
MkErrorSetC_3E(message,callfunc,-1)

Definition at line 1121 of file kernel_overload_mk.h.

◆ MkErrorSetC_2E_E

#define MkErrorSetC_2E_E ( caller,
message )
Value:
MkErrorCheck(MkErrorSetC_2E(message,caller))
#define MkErrorSetC_2E(message, callfunc)

Definition at line 10706 of file LibMkKernel_mk.h.

◆ MkErrorSetC_2M

#define MkErrorSetC_2M ( err,
message )
Value:
MkErrorSetC_4M(err,message,__func__,-1)

Definition at line 1125 of file kernel_overload_mk.h.

◆ MkErrorSetC_2M_NULL

#define MkErrorSetC_2M_NULL ( m,
msg )
Value:
MkErrorSetC_4M_NULL(m,msg,__func__,-1)
#define MkErrorSetC_4M_NULL(m,...)

Definition at line 10715 of file LibMkKernel_mk.h.

◆ MkErrorSetC_3

#define MkErrorSetC_3 ( err,
message,
callfunc )
Value:
MkErrorSetC(err,message,callfunc,-1)

Definition at line 1120 of file kernel_overload_mk.h.

◆ MkErrorSetC_3_NULL

#define MkErrorSetC_3_NULL ( ...)
Value:
#define MkErrorSetC_4_NULL(...)
#define MkERROR_NULL

Definition at line 10709 of file LibMkKernel_mk.h.

◆ MkErrorSetC_3E

#define MkErrorSetC_3E ( ...)
Value:
MkErrorSetC(&MkERROR,__VA_ARGS__)

Definition at line 1118 of file kernel_overload_mk.h.

◆ MkErrorSetC_3M

#define MkErrorSetC_3M ( err,
message,
callfunc )
Value:
MkErrorSetC_4M(err,message,callfunc,-1)

Definition at line 1122 of file kernel_overload_mk.h.

◆ MkErrorSetC_3M_NULL

#define MkErrorSetC_3M_NULL ( m,
msg,
pfx )
Value:
MkErrorSetC_4M_NULL(m,msg,pfx,-1)

Definition at line 10714 of file LibMkKernel_mk.h.

◆ MkErrorSetC_4_NULL

#define MkErrorSetC_4_NULL ( ...)
Value:
#define MK_RT_NULL

Definition at line 10708 of file LibMkKernel_mk.h.

◆ MkErrorSetC_4M

#define MkErrorSetC_4M ( m,
... )
Value:

Definition at line 1119 of file kernel_overload_mk.h.

◆ MkErrorSetC_4M_NULL

#define MkErrorSetC_4M_NULL ( m,
... )
Value:

Definition at line 10713 of file LibMkKernel_mk.h.

◆ MkErrorSetC_C

#define MkErrorSetC_C ( ...)
Value:
if (MkErrorCheckI(MkErrorSetC(__VA_ARGS__)))

Definition at line 1127 of file kernel_overload_mk.h.

◆ MkErrorSetC_E

#define MkErrorSetC_E ( ...)
Value:

Definition at line 1126 of file kernel_overload_mk.h.

◆ MkErrorSetC_NULL

#define MkErrorSetC_NULL ( ...)
Value:

Definition at line 1116 of file kernel_overload_mk.h.

◆ MkErrorSetE

#define MkErrorSetE ( ...)
Value:
MK_EXTERN enum MkErrorE MkErrorSetE_RT(MK_RT mkrt, MK_ERR const err, MK_ERR const newerr)
set the MkErrorC from a MkErrorC copy and raise an error …

Definition at line 1129 of file kernel_overload_mk.h.

◆ MkErrorSetE_1E

#define MkErrorSetE_1E ( ...)
Value:
MkErrorSetE(&MkERROR,__VA_ARGS__)
#define MkErrorSetE(...)

Definition at line 1130 of file kernel_overload_mk.h.

◆ MkErrorSetE_2M

#define MkErrorSetE_2M ( m,
... )
Value:

Definition at line 1131 of file kernel_overload_mk.h.

◆ MkErrorSetE_C

#define MkErrorSetE_C ( ...)
Value:
if (MkErrorCheckI(MkErrorSetE(__VA_ARGS__)))

Definition at line 1133 of file kernel_overload_mk.h.

◆ MkErrorSetE_E

#define MkErrorSetE_E ( ...)
Value:

Definition at line 1132 of file kernel_overload_mk.h.

◆ MkErrorSetE_NULL

#define MkErrorSetE_NULL ( ...)
Value:

Definition at line 1128 of file kernel_overload_mk.h.

◆ MkErrorSetR

#define MkErrorSetR ( ...)
Value:
MK_EXTERN enum MkErrorE MkErrorSetR_RT(MK_RT mkrt, MK_ERR const err, MK_STRN const message, enum MkErrorE const errcode, MK_I32 const errnum, MK_MNG const errctx)
set the MkErrorC and raise the error …

Definition at line 1135 of file kernel_overload_mk.h.

◆ MkErrorSetR_1E

#define MkErrorSetR_1E ( message)
Value:
MkErrorSetR_4E(message,MK_ERROR_NULL,-1,NULL)
#define MkErrorSetR_4E(...)

Definition at line 1145 of file kernel_overload_mk.h.

◆ MkErrorSetR_2

#define MkErrorSetR_2 ( err,
message )
Value:
MkErrorSetR(err,message,MK_ERROR_NULL,-1,NULL)
#define MkErrorSetR(...)

Definition at line 1144 of file kernel_overload_mk.h.

◆ MkErrorSetR_2E

#define MkErrorSetR_2E ( message,
errcode )
Value:
MkErrorSetR_4E(message,errcode,-1,NULL)

Definition at line 1142 of file kernel_overload_mk.h.

◆ MkErrorSetR_2M

#define MkErrorSetR_2M ( err,
message )
Value:
MkErrorSetR_5M(err,message,MK_ERROR_NULL,-1,NULL)
#define MkErrorSetR_5M(m,...)

Definition at line 1146 of file kernel_overload_mk.h.

◆ MkErrorSetR_3

#define MkErrorSetR_3 ( err,
message,
errcode )
Value:
MkErrorSetR(err,message,errcode,-1,NULL)

Definition at line 1141 of file kernel_overload_mk.h.

◆ MkErrorSetR_3E

#define MkErrorSetR_3E ( message,
errcode,
errnum )
Value:
MkErrorSetR_4E(message,errcode,errnum,NULL)

Definition at line 1139 of file kernel_overload_mk.h.

◆ MkErrorSetR_3M

#define MkErrorSetR_3M ( err,
message,
errcode )
Value:
MkErrorSetR_5M(err,message,errcode,-1,NULL)

Definition at line 1143 of file kernel_overload_mk.h.

◆ MkErrorSetR_4

#define MkErrorSetR_4 ( err,
message,
errcode,
errnum )
Value:
MkErrorSetR(err,message,errcode,errnum,NULL)

Definition at line 1138 of file kernel_overload_mk.h.

◆ MkErrorSetR_4E

#define MkErrorSetR_4E ( ...)
Value:
MkErrorSetR(&MkERROR,__VA_ARGS__)

Definition at line 1136 of file kernel_overload_mk.h.

◆ MkErrorSetR_4M

#define MkErrorSetR_4M ( err,
message,
errcode,
errnum )
Value:
MkErrorSetR_5M(err,message,errcode,errnum,NULL)

Definition at line 1140 of file kernel_overload_mk.h.

◆ MkErrorSetR_5M

#define MkErrorSetR_5M ( m,
... )
Value:

Definition at line 1137 of file kernel_overload_mk.h.

◆ MkErrorSetR_C

#define MkErrorSetR_C ( ...)
Value:
if (MkErrorCheckI(MkErrorSetR(__VA_ARGS__)))

Definition at line 1148 of file kernel_overload_mk.h.

◆ MkErrorSetR_E

#define MkErrorSetR_E ( ...)
Value:

Definition at line 1147 of file kernel_overload_mk.h.

◆ MkErrorSetR_NULL

#define MkErrorSetR_NULL ( ...)
Value:

Definition at line 1134 of file kernel_overload_mk.h.

◆ MkErrorSetV

#define MkErrorSetV ( ...)
Value:
MK_EXTERN enum MkErrorE MkErrorSetV_RT(MK_RT mkrt, MK_ERR err, MK_STRN const callfunc, MK_I32 const errnum, MK_FST const printfmt,...)
set the MkErrorS object using a format string argument list and raise an error …

Definition at line 1150 of file kernel_overload_mk.h.

◆ MkErrorSetV_1_NULL

#define MkErrorSetV_1_NULL ( printfmt,
... )
Value:
MkErrorSetV_NULL(&MkERROR_NULL,__func__,-1,printfmt,__VA_ARGS__)
#define MkErrorSetV_NULL(...)

Definition at line 10767 of file LibMkKernel_mk.h.

10767#define MkErrorSetV_1_NULL(printfmt,...) \
10768 MkErrorSetV_NULL(&MkERROR_NULL,__func__,-1,printfmt,__VA_ARGS__)

◆ MkErrorSetV_1E

#define MkErrorSetV_1E ( printfmt,
... )
Value:
MkErrorSetV_3E(__func__,-1,printfmt,__VA_ARGS__)
#define MkErrorSetV_3E(...)

Definition at line 1157 of file kernel_overload_mk.h.

◆ MkErrorSetV_1XS

#define MkErrorSetV_1XS ( printfmt,
... )
Value:
MkErrorSetV_4M(META_CONTEXT_S,__func__,-1,printfmt,__VA_ARGS__)

Definition at line 10770 of file LibMkKernel_mk.h.

10770#define MkErrorSetV_1XS(printfmt,...) \
10771 MkErrorSetV_4M(META_CONTEXT_S,__func__,-1,printfmt,__VA_ARGS__)

◆ MkErrorSetV_2

#define MkErrorSetV_2 ( err,
printfmt,
... )
Value:
MkErrorSetV(err,__func__,-1,printfmt,__VA_ARGS__)
#define MkErrorSetV(...)

Definition at line 1156 of file kernel_overload_mk.h.

◆ MkErrorSetV_2E

#define MkErrorSetV_2E ( callfunc,
printfmt,
... )
Value:
MkErrorSetV_3E(callfunc,-1,printfmt,__VA_ARGS__)

Definition at line 1154 of file kernel_overload_mk.h.

◆ MkErrorSetV_2E_E

#define MkErrorSetV_2E_E ( caller,
printfmt,
... )
Value:
MkErrorCheck(MkErrorSetV_2E(caller,printfmt,__VA_ARGS__))
#define MkErrorSetV_2E(callfunc, printfmt,...)

Definition at line 10773 of file LibMkKernel_mk.h.

10773#define MkErrorSetV_2E_E(caller,printfmt,...) \
10774 MkErrorCheck(MkErrorSetV_2E(caller,printfmt,__VA_ARGS__))

◆ MkErrorSetV_2M

#define MkErrorSetV_2M ( err,
printfmt,
... )
Value:
MkErrorSetV_4M(err,__func__,-1,printfmt,__VA_ARGS__)

Definition at line 1158 of file kernel_overload_mk.h.

◆ MkErrorSetV_2M_NULL

#define MkErrorSetV_2M_NULL ( m,
... )
Value:
MkErrorSetV_4M_NULL(m,__func__,-1,__VA_ARGS__)
#define MkErrorSetV_4M_NULL(m,...)

Definition at line 10764 of file LibMkKernel_mk.h.

◆ MkErrorSetV_2X

#define MkErrorSetV_2X ( x,
... )
Value:
MkErrorSetV(MkErrorFORMAT_1X(x),__func__,-1,__VA_ARGS__)
#define MkErrorFORMAT_1X(x)

Definition at line 10765 of file LibMkKernel_mk.h.

◆ MkErrorSetV_3

#define MkErrorSetV_3 ( err,
callfunc,
printfmt,
... )
Value:
MkErrorSetV(err,callfunc,-1,printfmt,__VA_ARGS__)

Definition at line 1153 of file kernel_overload_mk.h.

◆ MkErrorSetV_3E

#define MkErrorSetV_3E ( ...)
Value:
MkErrorSetV(&MkERROR,__VA_ARGS__)

Definition at line 1151 of file kernel_overload_mk.h.

◆ MkErrorSetV_3M

#define MkErrorSetV_3M ( err,
callfunc,
printfmt,
... )
Value:
MkErrorSetV_4M(err,callfunc,-1,printfmt,__VA_ARGS__)

Definition at line 1155 of file kernel_overload_mk.h.

◆ MkErrorSetV_4EO_NULL

#define MkErrorSetV_4EO_NULL ( o,
... )
Value:
MK_EXTERN MK_ERR MkErrorFORMAT_EO(MK_OBJN fmtobj)
same as (static,runtime) MK_ERR MkErrorDEFAULT() but do not set the MkERROR.format_of_error attribute...

Definition at line 10762 of file LibMkKernel_mk.h.

◆ MkErrorSetV_4M

#define MkErrorSetV_4M ( m,
... )
Value:

Definition at line 1152 of file kernel_overload_mk.h.

◆ MkErrorSetV_4M_NULL

#define MkErrorSetV_4M_NULL ( m,
... )
Value:

Definition at line 10763 of file LibMkKernel_mk.h.

◆ MkErrorSetV_C

#define MkErrorSetV_C ( ...)
Value:
if (MkErrorCheckI(MkErrorSetV(__VA_ARGS__)))

Definition at line 1160 of file kernel_overload_mk.h.

◆ MkErrorSetV_E

#define MkErrorSetV_E ( ...)
Value:

Definition at line 1159 of file kernel_overload_mk.h.

◆ MkErrorSetV_NULL

#define MkErrorSetV_NULL ( ...)
Value:

Definition at line 1149 of file kernel_overload_mk.h.

◆ MkErrorSetVL

#define MkErrorSetVL ( ...)
Value:
MK_EXTERN enum MkErrorE MkErrorSetVL_RT(MK_RT mkrt, MK_ERR err, MK_STRN const callfunc, MK_I32 const errnum, MK_FST const printfmt, va_list var_list)
'set' and 'raise' the MkErrorC using a vararg-list message …

Definition at line 1162 of file kernel_overload_mk.h.

◆ MkErrorSetVL_2E

#define MkErrorSetVL_2E ( printfmt,
var_list )
Value:
MkErrorSetVL_4E(__func__,-1,printfmt,var_list)
#define MkErrorSetVL_4E(...)

Definition at line 1169 of file kernel_overload_mk.h.

◆ MkErrorSetVL_3

#define MkErrorSetVL_3 ( err,
printfmt,
var_list )
Value:
MkErrorSetVL(err,__func__,-1,printfmt,var_list)
#define MkErrorSetVL(...)

Definition at line 1168 of file kernel_overload_mk.h.

◆ MkErrorSetVL_3E

#define MkErrorSetVL_3E ( callfunc,
printfmt,
var_list )
Value:
MkErrorSetVL_4E(callfunc,-1,printfmt,var_list)

Definition at line 1166 of file kernel_overload_mk.h.

◆ MkErrorSetVL_3M

#define MkErrorSetVL_3M ( err,
printfmt,
var_list )
Value:
MkErrorSetVL_5M(err,__func__,-1,printfmt,var_list)
#define MkErrorSetVL_5M(m,...)

Definition at line 1170 of file kernel_overload_mk.h.

◆ MkErrorSetVL_4

#define MkErrorSetVL_4 ( err,
callfunc,
printfmt,
var_list )
Value:
MkErrorSetVL(err,callfunc,-1,printfmt,var_list)

Definition at line 1165 of file kernel_overload_mk.h.

◆ MkErrorSetVL_4E

#define MkErrorSetVL_4E ( ...)
Value:
MkErrorSetVL(&MkERROR,__VA_ARGS__)

Definition at line 1163 of file kernel_overload_mk.h.

◆ MkErrorSetVL_4M

#define MkErrorSetVL_4M ( err,
callfunc,
printfmt,
var_list )
Value:
MkErrorSetVL_5M(err,callfunc,-1,printfmt,var_list)

Definition at line 1167 of file kernel_overload_mk.h.

◆ MkErrorSetVL_5M

#define MkErrorSetVL_5M ( m,
... )
Value:

Definition at line 1164 of file kernel_overload_mk.h.

◆ MkErrorSetVL_C

#define MkErrorSetVL_C ( ...)
Value:
if (MkErrorCheckI(MkErrorSetVL(__VA_ARGS__)))

Definition at line 1172 of file kernel_overload_mk.h.

◆ MkErrorSetVL_E

#define MkErrorSetVL_E ( ...)
Value:

Definition at line 1171 of file kernel_overload_mk.h.

◆ MkErrorSetVL_NULL

#define MkErrorSetVL_NULL ( ...)
Value:

Definition at line 1161 of file kernel_overload_mk.h.

◆ MkPanicC

#define MkPanicC ( ...)
Value:
MkPanicC_RT(MK_RT_CALL __VA_ARGS__)
MK_EXTERN void MkPanicC_RT(MK_RT mkrt, MK_OBJN const errobj, MK_STRN const callfunc, MK_I32 const errnum, MK_STRN const message)
do a panic with string as argument …

Definition at line 1176 of file kernel_overload_mk.h.

◆ MkPanicC_1

#define MkPanicC_1 ( message)
Value:
MkPanicC(NULL,__func__,-1,message)
#define MkPanicC(...)

Definition at line 1179 of file kernel_overload_mk.h.

◆ MkPanicC_2

#define MkPanicC_2 ( errobj,
message )
Value:
MkPanicC(errobj,__func__,-1,message)

Definition at line 1178 of file kernel_overload_mk.h.

◆ MkPanicC_2M

#define MkPanicC_2M ( x,
message )
Value:
MkPanicC_2(MkObj(x),message)
#define MkPanicC_2(errobj, message)
MK_OBJ MkObj(MK_MNG mng)
cast a unknown-object into an MkObjectS pointer or NULL if not possible

Definition at line 10557 of file LibMkKernel_mk.h.

◆ MkPanicC_3

#define MkPanicC_3 ( errobj,
callfunc,
message )
Value:
MkPanicC(errobj,callfunc,-1,message)

Definition at line 1177 of file kernel_overload_mk.h.

◆ MkPanicC_4M

#define MkPanicC_4M ( errobj,
callfunc,
errnum,
message )
Value:
MkPanicC(MkObj(errobj),callfunc,errnum,message)

Definition at line 10554 of file LibMkKernel_mk.h.

10554#define MkPanicC_4M(errobj,callfunc,errnum,message) \
10555 MkPanicC(MkObj(errobj),callfunc,errnum,message)

◆ MkPanicC_NULL

#define MkPanicC_NULL ( ...)
Value:

Definition at line 1175 of file kernel_overload_mk.h.

◆ MkPanicSYS

#define MkPanicSYS ( mngx)
Value:
do { \
MkLogC_2X(mngx,"internal ERROR, please contact your local support\n"); \
MkDisasterSignal(-1); \
} while (0)

do a panic with a system error message …

Parameters
[in]mngxthe MkObjectS instance to work on
Attention
this function will never return

Definition at line 10563 of file LibMkKernel_mk.h.

10563#define MkPanicSYS(mngx) do { \
10564 MkLogC_2X(mngx,"internal ERROR, please contact your local support\n"); \
10565 MkDisasterSignal(-1); \
10566} while (0)

◆ MkPanicV

#define MkPanicV ( ...)
Value:
MkPanicV_RT(MK_RT_CALL __VA_ARGS__)
MK_EXTERN void MkPanicV_RT(MK_RT mkrt, MK_OBJN const errobj, MK_STRN const callfunc, MK_I32 const errnum, MK_FST const printfmt,...)
do a panic with a vararg as argument …

Definition at line 1181 of file kernel_overload_mk.h.

◆ MkPanicV_1

#define MkPanicV_1 ( printfmt,
... )
Value:
MkPanicV(NULL,__func__,-1,printfmt,__VA_ARGS__)
#define MkPanicV(...)

Definition at line 1184 of file kernel_overload_mk.h.

◆ MkPanicV_2

#define MkPanicV_2 ( errobj,
printfmt,
... )
Value:
MkPanicV(errobj,__func__,-1,printfmt,__VA_ARGS__)

Definition at line 1183 of file kernel_overload_mk.h.

◆ MkPanicV_2M

#define MkPanicV_2M ( x,
printfmt,
... )
Value:
MkPanicV_2(MkObj(x),printfmt,__VA_ARGS__)
#define MkPanicV_2(errobj, printfmt,...)

Definition at line 10533 of file LibMkKernel_mk.h.

10533#define MkPanicV_2M(x,printfmt,...) \
10534 MkPanicV_2(MkObj(x),printfmt,__VA_ARGS__)

◆ MkPanicV_3

#define MkPanicV_3 ( errobj,
callfunc,
printfmt,
... )
Value:
MkPanicV(errobj,callfunc,-1,printfmt,__VA_ARGS__)

Definition at line 1182 of file kernel_overload_mk.h.

◆ MkPanicV_4M

#define MkPanicV_4M ( errobj,
callfunc,
errnum,
printfmt,
... )
Value:
MkPanicV(MkObj(errobj),callfunc,errnum,printfmt,__VA_ARGS__)

Definition at line 10530 of file LibMkKernel_mk.h.

10530#define MkPanicV_4M(errobj,callfunc,errnum,printfmt,...) \
10531 MkPanicV(MkObj(errobj),callfunc,errnum,printfmt,__VA_ARGS__)

◆ MkPanicV_NULL

#define MkPanicV_NULL ( ...)
Value:

Definition at line 1180 of file kernel_overload_mk.h.

◆ MkPanicVL

#define MkPanicVL ( ...)
Value:
MK_EXTERN void MkPanicVL_RT(MK_RT mkrt, MK_OBJN const errobj, MK_STRN const callfunc, MK_I32 const errnum, MK_FST const printfmt, va_list var_list)
do a panic with a vararg-list as argument …

Definition at line 1186 of file kernel_overload_mk.h.

◆ MkPanicVL_2

#define MkPanicVL_2 ( printfmt,
var_list )
Value:
MkPanicVL(NULL,__func__,-1,printfmt,var_list)
#define MkPanicVL(...)

Definition at line 1189 of file kernel_overload_mk.h.

◆ MkPanicVL_3

#define MkPanicVL_3 ( errobj,
printfmt,
var_list )
Value:
MkPanicVL(errobj,__func__,-1,printfmt,var_list)

Definition at line 1188 of file kernel_overload_mk.h.

◆ MkPanicVL_4

#define MkPanicVL_4 ( errobj,
callfunc,
printfmt,
var_list )
Value:
MkPanicVL(errobj,callfunc,-1,printfmt,var_list)

Definition at line 1187 of file kernel_overload_mk.h.

◆ MkPanicVL_5M

#define MkPanicVL_5M ( errobj,
callfunc,
errnum,
printfmt,
var_list )
Value:
MkPanicVL(MkObj(errobj),callfunc,errnum,printfmt,var_list)

Definition at line 10509 of file LibMkKernel_mk.h.

10509#define MkPanicVL_5M(errobj,callfunc,errnum,printfmt,var_list) \
10510 MkPanicVL(MkObj(errobj),callfunc,errnum,printfmt,var_list)

◆ MkPanicVL_NULL

#define MkPanicVL_NULL ( ...)
Value:

Definition at line 1185 of file kernel_overload_mk.h.

Function Documentation

◆ MkDisasterSignal()

MK_EXTERN void MkDisasterSignal ( MK_I32 signal)

called if something get REALLY wrong …

The MkDisasterSignal is called by the SIGSEGV signal-handler after an application-crash.

Attention
This function is used by sigaction.

◆ MkErrorAppendC_RT()

MK_EXTERN void MkErrorAppendC_RT ( MK_RT mkrt,
MK_ERR const err,
MK_STRN const message )

append the message to the MkErrorS::text

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]errthe MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed)
[in]messagethe string to be displayed as message (append)

◆ MkErrorAppendV_RT()

MK_EXTERN void MkErrorAppendV_RT ( MK_RT mkrt,
MK_ERR const err,
MK_FST const printfmt,
... )

append a vararg string to the MkErrorC

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]errthe MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed)
[in]printfmtis a c-string used as printf like format string

◆ MkErrorAppendVL_RT()

MK_EXTERN void MkErrorAppendVL_RT ( MK_RT mkrt,
MK_ERR const err,
MK_FST const printfmt,
va_list var_list )

append a va_list string to the MkErrorC

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]errthe MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed)
[in]printfmtis a c-string used as printf like format string
[in]var_lista variable argument list object

◆ MkErrorNoRaise_RT()

MK_EXTERN MK_ERR MkErrorNoRaise_RT ( MK_RT mkrt,
MK_ERR const err )

ignore the next return of MK_ERROR and do not raise an target-language-exception

Many functions from the MkErrorXXX return an MkErrorE to signal that an MK_ERROR is set. The target-language react on this signal and raise an target-language-exception.
If this behaviour is not desired the ErrorNoRaise is used to suppress the next MK_ERROR return.

This feature is used to avoid the target-language-exception after ErrorSetC etc.

This is usefull if:

  1. an error should be send by MqSendERROR later
  2. an error will be extended by using multiple ErrorAppendC etc later and than raised with ErrorRaise

Example from server.c create and send an background-error message

static enum MkErrorE
BgError ( MQ_SERVICE_CALL_ARGS )
{
  MQ_CTX master = MqSlaveGetMaster(mqctx);
  if (master) {
    MK_ERR err = MkErrorNoRaise(MkErrorFORMAT_1M(master));
    // MkErrorGetTextI and MkErrorSetC using the !! SAME !! memory
    // → need a temporary buffer "ctxbuf.buf"
    MkBufferSetSTR(MkBUF(&master->ctxbuf), MkErrorGetText(err));
    MkErrorSetC(err, MkBUF_R(&master->ctxbuf).storage.first.C, "BGERROR", MkErrorGetNum(err));
    MqSendERROR (master);
  }
  return MkErrorStack_1M_Check(mqctx);
}
Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]errthe MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed)
Returns
the input err with MkErrorS::noRaise flag set

◆ MkErrorSetC_RT()

MK_EXTERN enum MkErrorE MkErrorSetC_RT ( MK_RT mkrt,
MK_ERR err,
MK_STRN const message,
MK_STRN const callfunc,
MK_I32 const errnum )

'set' and 'raise' the MkErrorC using a string-message and a errnum-number

The message will be formatted into a libmkkernel error-message.

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]errthe MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed) - err==NULL allowed
[in]messagethe string to be displayed as message
[in]callfunca user-defined postfix to identify the calling function or the environment (default=name-of-function)
[in]errnumthe error number used as exit-code as well
Attention
Use ErrorNoRaise to avoid raise an error.

◆ MkErrorSetE_RT()

MK_EXTERN enum MkErrorE MkErrorSetE_RT ( MK_RT mkrt,
MK_ERR const err,
MK_ERR const newerr )

set the MkErrorC from a MkErrorC copy and raise an error …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]errthe MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed)
[in]newerrthe MkErrorC to be the new default-error
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
Use ErrorNoRaise to avoid raise an error.

◆ MkErrorSetR_RT()

MK_EXTERN enum MkErrorE MkErrorSetR_RT ( MK_RT mkrt,
MK_ERR const err,
MK_STRN const message,
enum MkErrorE const errcode,
MK_I32 const errnum,
MK_MNG const errctx )

set the MkErrorC and raise the error …

This is the most basic function to set the MkErrorS object… without formatting the MkErrorS::text message into a libmkkernel error-message.
This function is usefull to integrate into a uplevel-programming-language error-handling feature.

Example: error-handling in a uplevel-programming-language Callback:

"MkError" -> converted into "Prg-Lng-Error" -> converted back into "MkError"

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]errthe MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed)
[in]messagethe string to be displayed as message
[in]errnumthe error number used as exit-code as well
[in]errcodeonly values from MkErrorE are allowed
[in]errctxThe context where the error occurred.
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
Use ErrorNoRaise to avoid an raise of an error.

◆ MkErrorSetV_RT()

MK_EXTERN enum MkErrorE MkErrorSetV_RT ( MK_RT mkrt,
MK_ERR err,
MK_STRN const callfunc,
MK_I32 const errnum,
MK_FST const printfmt,
... )

set the MkErrorS object using a format string argument list and raise an error …

The string argument list will be formatted into a libmkkernel error-message.

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]errthe MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed)
[in]callfunca user-defined postfix to identify the calling function or the environment (default=name-of-function)
[in]errnumthe error number used as exit-code as well
[in]printfmtis a c-string used as printf like format string
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
Use ErrorNoRaise to avoid raise an error.

◆ MkErrorSetVL_RT()

MK_EXTERN enum MkErrorE MkErrorSetVL_RT ( MK_RT mkrt,
MK_ERR err,
MK_STRN const callfunc,
MK_I32 const errnum,
MK_FST const printfmt,
va_list var_list )

'set' and 'raise' the MkErrorC using a vararg-list message …

The var_list will be formatted into a libmkkernel error-message.

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]errthe MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed)
[in]callfunca user-defined postfix to identify the calling function or the environment (default=name-of-function)
[in]errnumthe error number used as exit-code as well
[in]printfmtis a c-string used as printf like format string
[in]var_lista variable argument list object
Returns
The MkErrorE status from the DEFAULT MkErrorC in MkRuntimeS::error_mk
Attention
Use ErrorNoRaise to avoid raise an error.

◆ MkPanicC_RT()

MK_EXTERN void MkPanicC_RT ( MK_RT mkrt,
MK_OBJN const errobj,
MK_STRN const callfunc,
MK_I32 const errnum,
MK_STRN const message )

do a panic with string as argument …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]errobja managed object used to identify and format the error-message
[in]callfunca user-defined postfix to identify the calling function or the environment (default=name-of-function)
[in]errnumthe error number used as exit-code as well
messagethe string to be displayed
Attention
this function will never return

◆ MkPanicV_RT()

MK_EXTERN void MkPanicV_RT ( MK_RT mkrt,
MK_OBJN const errobj,
MK_STRN const callfunc,
MK_I32 const errnum,
MK_FST const printfmt,
... )

do a panic with a vararg as argument …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]errobja managed object used to identify and format the error-message
[in]callfunca user-defined postfix to identify the calling function or the environment (default=name-of-function)
[in]errnumthe error number used as exit-code as well
[in]printfmtis a c-string used as printf like format string
Attention
this function will never return

◆ MkPanicVL_RT()

MK_EXTERN void MkPanicVL_RT ( MK_RT mkrt,
MK_OBJN const errobj,
MK_STRN const callfunc,
MK_I32 const errnum,
MK_FST const printfmt,
va_list var_list )

do a panic with a vararg-list as argument …

Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]errobja managed object used to identify and format the error-message
[in]callfunca user-defined postfix to identify the calling function or the environment (default=name-of-function)
[in]errnumthe error number used as exit-code as well
[in]printfmtis a c-string used as printf like format string
[in]var_lista variable argument list object
Attention
this function will never return