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

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

+ Collaboration diagram for MkRuntimeC_Class_Define_C_API:

MkRuntimeC - type definition

typedef struct MkRuntimeS MkRuntimeCR
 instance-struct-reference same as struct MkRuntimeS, useable in a class-macro as: class##R
 
typedef const struct MkRuntimeS MkRuntimeCNR
 const instance-struct-reference same as const struct MkRuntimeS, useable in a class-macro as: class##R
 
#define MkRuntimeC_T   (&MK_RT_REF._MkRuntimeC_T)
 class as MkSuperTypeS-class-type, useable in a class-macro as: class##_T
 
#define MkRuntimeC_TT   (MkTYP(MkRuntimeC_T))
 class as MkTypeS-class-type, useable in a class-macro as: class##_TT
 
#define MkRuntimeST   MkRuntimeC_T
 instance-type as MkSuperTypeS-class-type …
 
#define MkRuntimeSTT   (MkTYP(MkRuntimeST))
 instance-type as MkTypeS-class-type (cast from MkRuntimeST into MkTypeS) …
 
#define MkRuntimeC_type   MK_RT
 same as MkRuntimeS but useable in a class-macro as: class##_type
 
#define MkRuntimeCT_X(instance)
 cast from an instance into the MkSuperTypeS-class-type …
 
#define MkRuntimeCTT_X(instance)
 cast from an instance into the MkTypeS-class-type …
 
#define MkRuntimeCT_TT(typ)
 cast from an MkTypeS-class-type into an MkSuperTypeS-class-type …
 
#define MkRuntimeC_NS   MK
 map class to namespace …
 
#define MkRuntimeCTT   MkRuntimeCTT
 class as MkTypeS-class-type for MkRuntimeC in the Target-Programming-Language (TPL)
 
#define MkRuntimeCT   ( (struct MkSuperTypeS *) MkRuntimeCTT )
 class as MkSuperTypeS-class-type for MkRuntimeC in the Target-Programming-Language (TPL)
 

MkRuntimeC - signature check

bool MkRtCheck (MK_MNGN mng)
 check MkRuntimeS -> MkObjectS::signature
 
bool MkRtCheckO (MK_OBJN obj)
 check MkRuntimeS -> MkObjectS::signature
 
#define MkRuntimeC_Check(mng)
 

MkRuntimeC - cast from a defined or a undefined instance

MK_RT MkRt (MK_MNG mng)
 cast a unknown-object into an MkRuntimeS pointer or NULL if not possible
 
MK_RTN MkRtN (MK_MNGN mng)
 (const) cast a unknown-object into an MkRuntimeS pointer or NULL if not possible
 
#define MkRtRaise(_rt)
 raise an error if class-instance is not valid
 

MkRuntimeC - MkRuntimeC_Class_Define_C_API - function

MK_EXTERN MK_RT MkRtP (MK_MNG mng)
 Non-inline replacement for MkRt
 
MK_EXTERN MK_BOOL MkRtCheckP (MK_MNGN mng)
 Non-inline replacement for MkRtCheck
 
MK_EXTERN MK_BOOL MkRtCheckOP (MK_OBJN obj)
 Non-inline replacement for MkRtCheckO
 
MK_EXTERN MK_RTN MkRtNP (MK_MNGN mng)
 Non-inline replacement for MkRtN
 

MkRuntimeC - signature define

#define MkRuntimeC_SIGNATURE   (MkObjectC_SIGNATURE ^ (9u<<10))
 
#define MkRuntimeC_MASK   (((1u<<22)-1)<<10)
 

MkRuntimeC - cast to superclass

#define MkRuntimeC_X2rt(x)
 
#define MkRuntimeC_X2obj(x)
 

Detailed Description

MkRuntimeC - low level definition, access and cast …

Macro Definition Documentation

◆ MkRtRaise

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

raise an error if class-instance is not valid

Definition at line 11458 of file LibMkKernel_mk.h.

11458 #define MkRtRaise(_rt) if (!_MkCheckX(MkRuntimeC,_rt)) { \
11459 MkErrorSetC_1E("'MkRuntimeC' hdl is NULL"); \
11460 goto error ; \
11461 }

◆ MkRuntimeC_Check

#define MkRuntimeC_Check ( mng)
Value:
bool MkRtCheck(MK_MNGN mng)
check MkRuntimeS -> MkObjectS::signature …

Definition at line 11434 of file LibMkKernel_mk.h.

◆ MkRuntimeC_MASK

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

Definition at line 11364 of file LibMkKernel_mk.h.

◆ MkRuntimeC_NS

#define MkRuntimeC_NS   MK

map class to namespace …

Definition at line 11403 of file LibMkKernel_mk.h.

◆ MkRuntimeC_SIGNATURE

#define MkRuntimeC_SIGNATURE   (MkObjectC_SIGNATURE ^ (9u<<10))

Definition at line 11363 of file LibMkKernel_mk.h.

◆ MkRuntimeC_T

#define MkRuntimeC_T   (&MK_RT_REF._MkRuntimeC_T)

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

Definition at line 11387 of file LibMkKernel_mk.h.

◆ MkRuntimeC_TT

#define MkRuntimeC_TT   (MkTYP(MkRuntimeC_T))

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

Definition at line 11389 of file LibMkKernel_mk.h.

◆ MkRuntimeC_type

#define MkRuntimeC_type   MK_RT

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

Definition at line 11395 of file LibMkKernel_mk.h.

◆ MkRuntimeC_X2obj

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

Definition at line 11373 of file LibMkKernel_mk.h.

◆ MkRuntimeC_X2rt

#define MkRuntimeC_X2rt ( x)
Value:
(x)

Definition at line 11372 of file LibMkKernel_mk.h.

◆ MkRuntimeCT

#define MkRuntimeCT   ( (struct MkSuperTypeS *) MkRuntimeCTT )

class as MkSuperTypeS-class-type for MkRuntimeC in the Target-Programming-Language (TPL)

Definition at line 11407 of file LibMkKernel_mk.h.

◆ MkRuntimeCT_TT

#define MkRuntimeCT_TT ( typ)
Value:
( (struct MkSuperTypeS *) (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 MkSuperTypeS-class-type …

Definition at line 11401 of file LibMkKernel_mk.h.

◆ MkRuntimeCT_X

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

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

Definition at line 11397 of file LibMkKernel_mk.h.

◆ MkRuntimeCTT

#define MkRuntimeCTT   MkRuntimeCTT

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

Definition at line 11405 of file LibMkKernel_mk.h.

◆ MkRuntimeCTT_X

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

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

Definition at line 11399 of file LibMkKernel_mk.h.

◆ MkRuntimeST

#define MkRuntimeST   MkRuntimeC_T

instance-type as MkSuperTypeS-class-type …

Definition at line 11391 of file LibMkKernel_mk.h.

◆ MkRuntimeSTT

#define MkRuntimeSTT   (MkTYP(MkRuntimeST))

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

Definition at line 11393 of file LibMkKernel_mk.h.

Typedef Documentation

◆ MkRuntimeCNR

typedef const struct MkRuntimeS MkRuntimeCNR

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

Definition at line 11385 of file LibMkKernel_mk.h.

◆ MkRuntimeCR

typedef struct MkRuntimeS MkRuntimeCR

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

Definition at line 11383 of file LibMkKernel_mk.h.

Function Documentation

◆ MkRt()

MK_RT MkRt ( MK_MNG mng)
inline

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

Definition at line 11446 of file LibMkKernel_mk.h.

11446 {
11447 return (MkRtCheck(mng) ? (MK_RT)mng : NULL);
11448 }
The MkRuntimeS provide a per-thread environment for LibMkKernel …
+ Here is the caller graph for this function:

◆ MkRtCheck()

bool MkRtCheck ( MK_MNGN mng)
inline

check MkRuntimeS -> MkObjectS::signature

Returns
TRUE on valid rt and FALSE an invalid rt

Definition at line 11422 of file LibMkKernel_mk.h.

11422 {
11423 return MkSanitizeCheck(MkRuntimeC,mng);
11424 }
#define MkSanitizeCheck(_root, _m)
+ Here is the caller graph for this function:

◆ MkRtCheckO()

bool MkRtCheckO ( MK_OBJN obj)
inline

check MkRuntimeS -> MkObjectS::signature

Returns
TRUE on valid rt and FALSE an invalid rt

Definition at line 11429 of file LibMkKernel_mk.h.

11429 {
11430 return MkSanitizeCheckO(MkRuntimeC,obj);
11431 }
#define MkSanitizeCheckO(_root, _o)

◆ MkRtCheckOP()

MK_EXTERN MK_BOOL MkRtCheckOP ( MK_OBJN obj)

Non-inline replacement for MkRtCheckO

◆ MkRtCheckP()

MK_EXTERN MK_BOOL MkRtCheckP ( MK_MNGN mng)

Non-inline replacement for MkRtCheck

◆ MkRtN()

MK_RTN MkRtN ( MK_MNGN mng)
inline

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

Definition at line 11453 of file LibMkKernel_mk.h.

11453 {
11454 return (MkRtCheck(mng) ? (MK_RTN)mng : NULL);
11455 }

◆ MkRtNP()

MK_EXTERN MK_RTN MkRtNP ( MK_MNGN mng)

Non-inline replacement for MkRtN

◆ MkRtP()

MK_EXTERN MK_RT MkRtP ( MK_MNG mng)

Non-inline replacement for MkRt