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

MK_EXTERN enum MkErrorE MkErrorGetCode (MK_ERRN const err) MK_ATTR_HDL
 get the value of MkErrorS::code
 
MK_EXTERN MK_STRN MkErrorGetText (MK_ERRN const err) MK_ATTR_HDL
 get the MkErrorS::text
 
MK_EXTERN MK_SIZE MkErrorGetSize (MK_ERRN const err) MK_ATTR_HDL
 get the error-message-size from the exception-object
 
MK_EXTERN MK_I32 MkErrorGetNum (MK_ERRN const err) MK_ATTR_HDL
 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 984 of file kernel_overload_mk.h.

◆ MkErrorGetCode_1M

#define MkErrorGetCode_1M ( m)
Value:

Definition at line 985 of file kernel_overload_mk.h.

◆ MkErrorGetCode_C

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

Definition at line 987 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 986 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 10167 of file LibMkKernel_mk.h.

◆ MkErrorGetCodeE_NULL

#define MkErrorGetCodeE_NULL ( )
Value:
#define MkERROR_NULL

get the value of MkErrorS::code

Definition at line 10165 of file LibMkKernel_mk.h.

◆ MkErrorGetCodeI

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

get the value of MkErrorS::code

Definition at line 10163 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 988 of file kernel_overload_mk.h.

◆ MkErrorGetNum_1M

#define MkErrorGetNum_1M ( m)
Value:

Definition at line 989 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 10194 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 990 of file kernel_overload_mk.h.

◆ MkErrorGetSize_1M

#define MkErrorGetSize_1M ( m)
Value:

Definition at line 991 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
long MK_SIZE

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

Definition at line 10185 of file LibMkKernel_mk.h.

◆ MkErrorGetText_0E

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

Definition at line 992 of file kernel_overload_mk.h.

◆ MkErrorGetText_1M

#define MkErrorGetText_1M ( m)
Value:

Definition at line 993 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 10176 of file LibMkKernel_mk.h.

Function Documentation

◆ MkErrorGetCode()

MK_EXTERN enum MkErrorE MkErrorGetCode ( MK_ERRN const err)

get the value of MkErrorS::code

◆ MkErrorGetNum()

MK_EXTERN MK_I32 MkErrorGetNum ( MK_ERRN const err)

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

◆ MkErrorGetSize()

MK_EXTERN MK_SIZE MkErrorGetSize ( MK_ERRN const err)

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

◆ MkErrorGetText()

MK_EXTERN MK_STRN MkErrorGetText ( MK_ERRN const err)

get the MkErrorS::text