theKernel 10.0
Loading...
Searching...
No Matches
MkErrorC_Class_Define_C_API

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

+ Collaboration diagram for MkErrorC_Class_Define_C_API:

MkErrorC - type definition

typedef struct MkErrorS libmkkernel::MkErrorCR
 instance-struct-reference same as struct MkErrorS, useable in a class-macro as: class##R
 
typedef const struct MkErrorS libmkkernel::MkErrorCNR
 const instance-struct-reference same as const struct MkErrorS, useable in a class-macro as: class##R
 
#define MkErrorC_T   (&MK_RT_REF._MkErrorC_T)
 class as MkTypeDefS-class-type, useable in a class-macro as: class##_T
 
#define MkErrorC_TT   (MkTYP(MkErrorC_T))
 class as MkTypeS-class-type, useable in a class-macro as: class##_TT
 
#define MkErrorST   MkErrorC_T
 instance-type as MkTypeDefS-class-type …
 
#define MkErrorSTT   (MkTYP(MkErrorST))
 instance-type as MkTypeS-class-type (cast from MkErrorST into MkTypeS) …
 
#define MkErrorC_type   MK_ERR
 same as MkErrorS but useable in a class-macro as: class##_type
 
#define MkErrorCT_X(instance)
 cast from an instance into the MkTypeDefS-class-type …
 
#define MkErrorCTT_X(instance)
 cast from an instance into the MkTypeS-class-type …
 
#define MkErrorCT_TT(typ)
 cast from an MkTypeS-class-type into an MkTypeDefS-class-type …
 
#define MkErrorC_NS   MK
 map class to namespace …
 
#define MkErrorCTT   MkErrorCTT
 class as MkTypeS-class-type for MkErrorC in the Target-Programming-Language (TPL)
 
#define MkErrorCT   ( (struct MkTypeDefS *) MkErrorCTT )
 class as MkTypeDefS-class-type for MkErrorC in the Target-Programming-Language (TPL)
 

MkErrorC - signature check

static bool libmkkernel::MkErrCheck (MK_MNGN mng)
 check MkErrorS -> libmkkernel::MkObjectS::signature
 
static bool libmkkernel::MkErrCheckO (MK_OBJN obj)
 check MkErrorS -> libmkkernel::MkObjectS::signature
 

MkErrorC - cast from a defined or a undefined instance

static MK_ERR libmkkernel::MkErr (MK_MNG mng)
 cast a unknown-object into an MkErrorS pointer or NULL if not possible
 
static MK_ERRN libmkkernel::MkErrN (MK_MNGN mng)
 (const) cast a unknown-object into an MkErrorS pointer or NULL if not possible
 
#define MkErrRaise(_err)
 raise an error if class-instance is not valid
 
#define MkERR_R(x)
 cast a known-object into an MkErrorS reference
 
#define MkERR(x)
 cast a known-object into an MkErrorS pointer
 

MkErrorC - signature define

#define MkErrorC_SIGNATURE   (MkObjectC_SIGNATURE ^ (4u<<10))
 
#define MkErrorC_MASK   (((1u<<22)-1)<<10)
 

MkErrorC - cast to superclass

#define MkErrorC_X2err(x)
 
#define MkErrorC_X2obj(x)
 

Detailed Description

MkErrorC - low level definition, access and cast …

Macro Definition Documentation

◆ MkERR

#define MkERR ( x)
Value:
(&MkERR_R(x))
#define MkERR_R(x)
cast a known-object into an MkErrorS reference

cast a known-object into an MkErrorS pointer

Definition at line 9860 of file LibMkKernel_mk.h.

◆ MkERR_R

#define MkERR_R ( x)
Value:
(*(x)).super.err

cast a known-object into an MkErrorS reference

Definition at line 9858 of file LibMkKernel_mk.h.

◆ MkErrorC_MASK

#define MkErrorC_MASK   (((1u<<22)-1)<<10)

Definition at line 9758 of file LibMkKernel_mk.h.

◆ MkErrorC_NS

#define MkErrorC_NS   MK

map class to namespace …

Definition at line 9796 of file LibMkKernel_mk.h.

◆ MkErrorC_SIGNATURE

#define MkErrorC_SIGNATURE   (MkObjectC_SIGNATURE ^ (4u<<10))

Definition at line 9757 of file LibMkKernel_mk.h.

◆ MkErrorC_T

#define MkErrorC_T   (&MK_RT_REF._MkErrorC_T)

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

Definition at line 9780 of file LibMkKernel_mk.h.

◆ MkErrorC_TT

#define MkErrorC_TT   (MkTYP(MkErrorC_T))

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

Definition at line 9782 of file LibMkKernel_mk.h.

◆ MkErrorC_type

#define MkErrorC_type   MK_ERR

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

Definition at line 9788 of file LibMkKernel_mk.h.

◆ MkErrorC_X2err

#define MkErrorC_X2err ( x)
Value:
(x)

Definition at line 9766 of file LibMkKernel_mk.h.

◆ MkErrorC_X2obj

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

Definition at line 9767 of file LibMkKernel_mk.h.

◆ MkErrorCT

#define MkErrorCT   ( (struct MkTypeDefS *) MkErrorCTT )

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

Definition at line 9800 of file LibMkKernel_mk.h.

◆ MkErrorCT_TT

#define MkErrorCT_TT ( typ)
Value:
( (struct MkTypeDefS *) (typ) )

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

Definition at line 9794 of file LibMkKernel_mk.h.

◆ MkErrorCT_X

#define MkErrorCT_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 9790 of file LibMkKernel_mk.h.

◆ MkErrorCTT

#define MkErrorCTT   MkErrorCTT

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

Definition at line 9798 of file LibMkKernel_mk.h.

◆ MkErrorCTT_X

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

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

Definition at line 9792 of file LibMkKernel_mk.h.

◆ MkErrorST

#define MkErrorST   MkErrorC_T

instance-type as MkTypeDefS-class-type …

Definition at line 9784 of file LibMkKernel_mk.h.

◆ MkErrorSTT

#define MkErrorSTT   (MkTYP(MkErrorST))

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

Definition at line 9786 of file LibMkKernel_mk.h.

◆ MkErrRaise

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

raise an error if class-instance is not valid

Definition at line 9852 of file LibMkKernel_mk.h.

9852// MkErrorC_Class_Define_C_API
9853
9854// END-MkErrorS-Definition - created by 'c_Class.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
9855

Typedef Documentation

◆ MkErrorCNR

typedef const struct MkErrorS libmkkernel::MkErrorCNR

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

Definition at line 9778 of file LibMkKernel_mk.h.

◆ MkErrorCR

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

Definition at line 9776 of file LibMkKernel_mk.h.

Function Documentation

◆ MkErr()

static MK_ERR libmkkernel::MkErr ( MK_MNG mng)
inlinestatic

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

Definition at line 9839 of file LibMkKernel_mk.h.

◆ MkErrCheck()

static bool libmkkernel::MkErrCheck ( MK_MNGN mng)
inlinestatic

check MkErrorS -> libmkkernel::MkObjectS::signature

Returns
TRUE on valid err and FALSE an invalid err

Definition at line 9815 of file LibMkKernel_mk.h.

+ Here is the caller graph for this function:

◆ MkErrCheckO()

static bool libmkkernel::MkErrCheckO ( MK_OBJN obj)
inlinestatic

check MkErrorS -> libmkkernel::MkObjectS::signature

Returns
TRUE on valid err and FALSE an invalid err

Definition at line 9823 of file LibMkKernel_mk.h.

9825 {

◆ MkErrN()

static MK_ERRN libmkkernel::MkErrN ( MK_MNGN mng)
inlinestatic

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

Definition at line 9847 of file LibMkKernel_mk.h.

+ Here is the caller graph for this function: