theKernel 10.0
Loading...
Searching...
No Matches
MkErrorC_Get_C_API

MkErrorC - various functions to 'get' data out of a MkErrorSMore...

+ Collaboration diagram for MkErrorC_Get_C_API:

Macros

#define MkErrorGetCodeI(e)
 get the value of MkErrorS::code
 
#define MkErrorGetCodeE_NULL()
 get the value of MkErrorS::code
 
#define MkErrorGetCode_O(o)
 get the value of MkErrorS::code
 
#define MkErrorGetTextI(e)
 get the MkErrorS::text
 
#define MkErrorGetSizeI(e)
 get the error-message-size from the exception-object
 
#define MkErrorGetNumI(e)
 get the MkErrorS::num. The number can be used as exit-code …
 

Functions

enum MkErrorE libmkkernel::MkErrorGetCode (MK_ERRN const err)
 get the value of MkErrorS::code
 
MK_STRN libmkkernel::MkErrorGetText (MK_ERRN const err)
 get the MkErrorS::text
 
MK_SIZE libmkkernel::MkErrorGetSize (MK_ERRN const err)
 get the error-message-size from the exception-object
 
MK_I32 libmkkernel::MkErrorGetNum (MK_ERRN const err)
 get the MkErrorS::num. The number can be used as exit-code …
 

MkErrorC - MkErrorC_Get_C_API - overload

#define MkErrorGetCode_0E()
 
#define MkErrorGetCode_1M(m)
 
#define MkErrorGetCode_E(...)
 
#define MkErrorGetCode_C(...)
 
#define MkErrorGetNum_0E()
 
#define MkErrorGetNum_1M(m)
 
#define MkErrorGetSize_0E()
 
#define MkErrorGetSize_1M(m)
 
#define MkErrorGetText_0E()
 
#define MkErrorGetText_1M(m)
 

Detailed Description

MkErrorC - various functions to 'get' data out of a MkErrorS

Macro Definition Documentation

◆ MkErrorGetCode_0E

#define MkErrorGetCode_0E ( )
Value:
#define MkErrorGetCodeI(e)
get the value of MkErrorS::code …
#define MkERROR

Definition at line 981 of file kernel_overload_mk.h.

◆ MkErrorGetCode_1M

#define MkErrorGetCode_1M ( m)
Value:

Definition at line 982 of file kernel_overload_mk.h.

◆ MkErrorGetCode_C

#define MkErrorGetCode_C ( ...)
Value:
if (MkErrorCheckI(MkErrorGetCodeI(__VA_ARGS__)))
#define MkErrorCheckI(err)

Definition at line 984 of file kernel_overload_mk.h.

◆ MkErrorGetCode_E

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

Definition at line 983 of file kernel_overload_mk.h.

◆ MkErrorGetCode_O

#define MkErrorGetCode_O ( o)
Value:
(MkERROR_O(o).code)
#define MkERROR_O(o)

get the value of MkErrorS::code

Definition at line 10929 of file LibMkKernel_mk.h.

◆ MkErrorGetCodeE_NULL

#define MkErrorGetCodeE_NULL ( )
Value:
#define MkERROR_NULL

get the value of MkErrorS::code

Definition at line 10927 of file LibMkKernel_mk.h.

◆ MkErrorGetCodeI

#define MkErrorGetCodeI ( e)
Value:
((*e).code)

get the value of MkErrorS::code

Definition at line 10925 of file LibMkKernel_mk.h.

◆ MkErrorGetNum_0E

#define MkErrorGetNum_0E ( )
Value:
#define MkErrorGetNumI(e)
get the MkErrorS::num. The number can be used as exit-code …

Definition at line 985 of file kernel_overload_mk.h.

◆ MkErrorGetNum_1M

#define MkErrorGetNum_1M ( m)
Value:

Definition at line 986 of file kernel_overload_mk.h.

◆ MkErrorGetNumI

#define MkErrorGetNumI ( e)
Value:
((*e).num)

get the MkErrorS::num. The number can be used as exit-code …

Definition at line 10956 of file LibMkKernel_mk.h.

◆ MkErrorGetSize_0E

#define MkErrorGetSize_0E ( )
Value:
#define MkErrorGetSizeI(e)
get the error-message-size from the exception-object …

Definition at line 987 of file kernel_overload_mk.h.

◆ MkErrorGetSize_1M

#define MkErrorGetSize_1M ( m)
Value:

Definition at line 988 of file kernel_overload_mk.h.

◆ MkErrorGetSizeI

#define MkErrorGetSizeI ( e)
Value:
((MK_SIZE)MkBUF_R(&(*e).text).var.cursize)
#define MkBUF_R(x)
cast a known-object into an MkBufferS reference

get the error-message-size from the exception-object

Definition at line 10947 of file LibMkKernel_mk.h.

◆ MkErrorGetText_0E

#define MkErrorGetText_0E ( )
Value:
#define MkErrorGetTextI(e)
get the MkErrorS::text …

Definition at line 989 of file kernel_overload_mk.h.

◆ MkErrorGetText_1M

#define MkErrorGetText_1M ( m)
Value:

Definition at line 990 of file kernel_overload_mk.h.

◆ MkErrorGetTextI

#define MkErrorGetTextI ( e)
Value:
(MkBUF_R(&(*e).text).storage.first.C)

get the MkErrorS::text

Definition at line 10938 of file LibMkKernel_mk.h.

Function Documentation

◆ MkErrorGetCode()

enum MkErrorE libmkkernel::MkErrorGetCode ( MK_ERRN const err)

get the value of MkErrorS::code

+ Here is the caller graph for this function:

◆ MkErrorGetNum()

MK_I32 libmkkernel::MkErrorGetNum ( MK_ERRN const err)

get the MkErrorS::num. The number can be used as exit-code …

+ Here is the caller graph for this function:

◆ MkErrorGetSize()

MK_SIZE libmkkernel::MkErrorGetSize ( MK_ERRN const err)

get the error-message-size from the exception-object

◆ MkErrorGetText()

MK_STRN libmkkernel::MkErrorGetText ( MK_ERRN const err)

get the MkErrorS::text

+ Here is the caller graph for this function: