theKernel 10.0
Loading...
Searching...
No Matches
MkErrExtC_Class_Define_C_API

MkErrExtS - low level definition, access and cast … More...

+ Collaboration diagram for MkErrExtC_Class_Define_C_API:

MkErrExtC - type definition

typedef struct MkErrExtS MkErrExtCR
 instance-struct-reference same as struct MkErrExtS, useable in a class-macro as: class##R
 
typedef const struct MkErrExtS MkErrExtCNR
 const instance-struct-reference same as const struct MkErrExtS, useable in a class-macro as: class##R
 
#define MkErrExtC_T   (&MK_RT_REF._MkErrExtC_T)
 class as MkTypeDefS-class-type, useable in a class-macro as: class##_T
 
#define MkErrExtC_TT   (MkTYP(MkErrExtC_T))
 class as MkTypeS-class-type, useable in a class-macro as: class##_TT
 
#define MkErrExtST   MkErrExtC_T
 instance-type as MkTypeDefS-class-type …
 
#define MkErrExtSTT   (MkTYP(MkErrExtST))
 instance-type as MkTypeS-class-type (cast from MkErrExtST into MkTypeS) …
 
#define MkErrExtC_type   MK_ERREXT
 same as MkErrExtS but useable in a class-macro as: class##_type
 
#define MkErrExtCT_X(instance)
 cast from an instance into the MkTypeDefS-class-type …
 
#define MkErrExtCTT_X(instance)
 cast from an instance into the MkTypeS-class-type …
 
#define MkErrExtCT_TT(typ)
 cast from an MkTypeS-class-type into an MkTypeDefS-class-type …
 
#define MkErrExtC_NS   MK
 map class to namespace …
 
#define MkErrExtCTT   MkErrExtCTT
 class as MkTypeS-class-type for MkErrExtC in the Target-Programming-Language (TPL)
 
#define MkErrExtCT   ( (struct MkTypeDefS *) MkErrExtCTT )
 class as MkTypeDefS-class-type for MkErrExtC in the Target-Programming-Language (TPL)
 

MkErrExtC - signature check

static bool MkErrExtCheck (MK_MNGN mng)
 check MkErrExtS -> MkObjectS::signature
 
static bool MkErrExtCheckO (MK_OBJN obj)
 check MkErrExtS -> MkObjectS::signature
 
#define MkErrExtC_Check(mng)
 

MkErrExtC - cast from a defined or a undefined instance

static MK_ERREXT MkErrExt (MK_MNG mng)
 cast a unknown-object into an MkErrExtS pointer or NULL if not possible
 
static MK_ERREXTN MkErrExtN (MK_MNGN mng)
 (const) cast a unknown-object into an MkErrExtS pointer or NULL if not possible
 
#define MkErrExtRaise(_errext)
 raise an error if class-instance is not valid
 
#define MkERREXT_R(x)
 cast a known-object into an MkErrExtS reference
 
#define MkERREXT(x)
 cast a known-object into an MkErrExtS pointer
 

MkErrExtC - signature define

#define MkErrExtC_SIGNATURE   (MkExtensionC_SIGNATURE ^ (1u<<6))
 
#define MkErrExtC_MASK   (((1u<<26)-1)<<6)
 

MkErrExtC - cast to superclass

#define MkErrExtC_X2errext(x)
 
#define MkErrExtC_X2ext(x)
 
#define MkErrExtC_X2obj(x)
 

Detailed Description

MkErrExtS - low level definition, access and cast …

Macro Definition Documentation

◆ MkERREXT

#define MkERREXT ( x)
Value:
#define MkERREXT_R(x)
cast a known-object into an MkErrExtS reference

cast a known-object into an MkErrExtS pointer

Definition at line 10165 of file LibMkKernel_mk.h.

◆ MkERREXT_R

#define MkERREXT_R ( x)
Value:
(*(x)).super.errext

cast a known-object into an MkErrExtS reference

Definition at line 10163 of file LibMkKernel_mk.h.

◆ MkErrExtC_Check

#define MkErrExtC_Check ( mng)
Value:
static bool MkErrExtCheck(MK_MNGN mng)
check MkErrExtS -> MkObjectS::signature …

Definition at line 10132 of file LibMkKernel_mk.h.

◆ MkErrExtC_MASK

#define MkErrExtC_MASK   (((1u<<26)-1)<<6)

Definition at line 10061 of file LibMkKernel_mk.h.

◆ MkErrExtC_NS

#define MkErrExtC_NS   MK

map class to namespace …

Definition at line 10100 of file LibMkKernel_mk.h.

◆ MkErrExtC_SIGNATURE

#define MkErrExtC_SIGNATURE   (MkExtensionC_SIGNATURE ^ (1u<<6))

Definition at line 10060 of file LibMkKernel_mk.h.

◆ MkErrExtC_T

#define MkErrExtC_T   (&MK_RT_REF._MkErrExtC_T)

class as MkTypeDefS-class-type, useable in a class-macro as: class##_T

Definition at line 10084 of file LibMkKernel_mk.h.

◆ MkErrExtC_TT

#define MkErrExtC_TT   (MkTYP(MkErrExtC_T))

class as MkTypeS-class-type, useable in a class-macro as: class##_TT

Definition at line 10086 of file LibMkKernel_mk.h.

◆ MkErrExtC_type

#define MkErrExtC_type   MK_ERREXT

same as MkErrExtS but useable in a class-macro as: class##_type

Definition at line 10092 of file LibMkKernel_mk.h.

◆ MkErrExtC_X2errext

#define MkErrExtC_X2errext ( x)
Value:
(x)

Definition at line 10069 of file LibMkKernel_mk.h.

◆ MkErrExtC_X2ext

#define MkErrExtC_X2ext ( x)
Value:
#define MkEXT(x)
cast a known-object into an MkExtensionS pointer

Definition at line 10070 of file LibMkKernel_mk.h.

◆ MkErrExtC_X2obj

#define MkErrExtC_X2obj ( x)
Value:
#define MkOBJ(x)
cast a known-object into an MkObjectS pointer

Definition at line 10071 of file LibMkKernel_mk.h.

◆ MkErrExtCT

#define MkErrExtCT   ( (struct MkTypeDefS *) MkErrExtCTT )

class as MkTypeDefS-class-type for MkErrExtC in the Target-Programming-Language (TPL)

Definition at line 10104 of file LibMkKernel_mk.h.

◆ MkErrExtCT_TT

#define MkErrExtCT_TT ( typ)
Value:
( (struct MkTypeDefS *) (typ) )
super-class-base, the MkTypeS using the super-macro-syntax for all non specific types …
struct MkTypeS typ

cast from an MkTypeS-class-type into an MkTypeDefS-class-type …

Definition at line 10098 of file LibMkKernel_mk.h.

◆ MkErrExtCT_X

#define MkErrExtCT_X ( instance)
Value:
( (struct MkTypeDefS *) (MkOBJ_R(instance).type) )
#define MkOBJ_R(x)
cast a known-object into an MkObjectS reference

cast from an instance into the MkTypeDefS-class-type …

Definition at line 10094 of file LibMkKernel_mk.h.

◆ MkErrExtCTT

#define MkErrExtCTT   MkErrExtCTT

class as MkTypeS-class-type for MkErrExtC in the Target-Programming-Language (TPL)

Definition at line 10102 of file LibMkKernel_mk.h.

◆ MkErrExtCTT_X

#define MkErrExtCTT_X ( instance)
Value:
(MkOBJ_R(instance).type)

cast from an instance into the MkTypeS-class-type …

Definition at line 10096 of file LibMkKernel_mk.h.

◆ MkErrExtRaise

#define MkErrExtRaise ( _errext)
Value:
if (!_MkCheckX(MkErrExtC,_errext)) { \
MkErrorSetC_1E("'MkErrExtC' hdl is NULL"); \
goto error ; \
}
#define _MkCheckX(cls, x)

raise an error if class-instance is not valid

Definition at line 10157 of file LibMkKernel_mk.h.

10157 #define MkErrExtRaise(_errext) if (!_MkCheckX(MkErrExtC,_errext)) { \
10158 MkErrorSetC_1E("'MkErrExtC' hdl is NULL"); \
10159 goto error ; \
10160 }

◆ MkErrExtST

#define MkErrExtST   MkErrExtC_T

instance-type as MkTypeDefS-class-type …

Definition at line 10088 of file LibMkKernel_mk.h.

◆ MkErrExtSTT

#define MkErrExtSTT   (MkTYP(MkErrExtST))

instance-type as MkTypeS-class-type (cast from MkErrExtST into MkTypeS) …

Definition at line 10090 of file LibMkKernel_mk.h.

Typedef Documentation

◆ MkErrExtCNR

typedef const struct MkErrExtS MkErrExtCNR

const instance-struct-reference same as const struct MkErrExtS, useable in a class-macro as: class##R

Definition at line 10082 of file LibMkKernel_mk.h.

◆ MkErrExtCR

typedef struct MkErrExtS MkErrExtCR

instance-struct-reference same as struct MkErrExtS, useable in a class-macro as: class##R

Definition at line 10080 of file LibMkKernel_mk.h.

Function Documentation

◆ MkErrExt()

static MK_ERREXT MkErrExt ( MK_MNG mng)
inlinestatic

cast a unknown-object into an MkErrExtS pointer or NULL if not possible

Definition at line 10144 of file LibMkKernel_mk.h.

10144 {
10145 return (MkErrExtCheck(mng) ? (MK_ERREXT)mng : NULL);
10146 }
extension-slot for MkErrorS …

◆ MkErrExtCheck()

static bool MkErrExtCheck ( MK_MNGN mng)
inlinestatic

check MkErrExtS -> MkObjectS::signature

Returns
TRUE on valid errext and FALSE an invalid errext

Definition at line 10119 of file LibMkKernel_mk.h.

10119 {
10120 return MkSanitizeCheck(MkErrExtC,mng);
10121 }
#define MkSanitizeCheck(_root, _m)
+ Here is the caller graph for this function:

◆ MkErrExtCheckO()

static bool MkErrExtCheckO ( MK_OBJN obj)
inlinestatic

check MkErrExtS -> MkObjectS::signature

Returns
TRUE on valid errext and FALSE an invalid errext

Definition at line 10127 of file LibMkKernel_mk.h.

10127 {
10128 return MkSanitizeCheckO(MkErrExtC,obj);
10129 }
#define MkSanitizeCheckO(_root, _o)

◆ MkErrExtN()

static MK_ERREXTN MkErrExtN ( MK_MNGN mng)
inlinestatic

(const) cast a unknown-object into an MkErrExtS pointer or NULL if not possible

Definition at line 10152 of file LibMkKernel_mk.h.

10152 {
10153 return (MkErrExtCheck(mng) ? (MK_ERREXTN)mng : NULL);
10154 }