theKernel 10.0
Loading...
Searching...
No Matches
MkErrorC_atl.c File Reference

tag: nhi1-release-250425 More...

+ Include dependency graph for MkErrorC_atl.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "MkErrorC_atl.c"
 
#define OT_CLASS   amkrt->AtlMkErrorC
 
#define OT_NULL   amkrt->AtlMkErrorC_MK_NULL
 
#define OT_CLASS_NAME   "MkErrorC"
 
#define SELF2HDL(O)
 
#define OT_SETUP_hdl   SetupHdlFromMetaData_2(MK_ERR)
 
#define OT_SETUP_hdl__null_allow   SetupHdlFromMetaData__null_allow_2(MK_ERR)
 
#define OT_SETUP_hdl_destr   SetupHdlFromMetaData__null_allow_2(MK_ERR)
 
#define OT_SETUP_hdl_constr   SetupHdlConstr(MkErrorC)
 
#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static
 
#define OT_SETUP_hdl_static   SetupHdlStatic(MkErrorC)
 
#define OT_retObj_CONSTR(x)
 
#define ClassInit
 
#define DEFAULT_doc   "MkErrorC [MkErrorC::DEFAULT]"
 
#define FORMAT_doc   "MkErrorC [MkErrorC::FORMAT ?fmtobj:MkObjectC=NULL?]"
 
#define GetNull_doc   "MkErrorC [MkErrorC::GetNull]"
 
#define HandleResolve_doc   "MkErrorC [MkErrorC::HandleResolve netHdl:MK_HDL]"
 
#define IGNORE_doc   "MkErrorC [MkErrorC::IGNORE]"
 
#define Instances_doc   "MkErrorC [MkErrorC::Instances]"
 
#define PRINT_doc   "MkErrorC [MkErrorC::PRINT]"
 
#define Dup_doc   "MkErrorC [MkErrorC::Dup $srce] (const)"
 
#define Catch_doc   "MkErrorC [MkErrorC::Catch $err ?exception:errorCode=NULL? ?callfunc:string=\"MK_NULL\"?]"
 
#define Next_doc   "MkErrorC [MkErrorC::Next $err]"
 
#define NoRaise_doc   "MkErrorC [MkErrorC::NoRaise $err]"
 
#define Prev_doc   "MkErrorC [MkErrorC::Prev $err]"
 
#define AppendC_doc   "MkErrorC::AppendC $err message:string"
 
#define Cleanup_doc   "MkErrorC::Cleanup $err ?callfunc:string=\"MK_NULL\"? ?callline:int32=-1?"
 
#define Copy_doc   "MkErrorC::Copy $dest srce:MkErrorC"
 
#define GetCode_doc   "MkErrorE [MkErrorC::GetCode $err] (const)"
 
#define GetNum_doc   "int32 [MkErrorC::GetNum $err] (const)"
 
#define GetSize_doc   "long [MkErrorC::GetSize $err] (const)"
 
#define GetText_doc   "string [MkErrorC::GetText $err] (const)"
 
#define IsABORT_doc   "bool [MkErrorC::IsABORT $err] (const)"
 
#define IsEXIT_doc   "bool [MkErrorC::IsEXIT $err]"
 
#define IsSOCKET_doc   "bool [MkErrorC::IsSOCKET $err] (const)"
 
#define IsTIMEOUT_doc   "bool [MkErrorC::IsTIMEOUT $err] (const)"
 
#define Println_doc   "MkErrorC::Println $err ?msg:string=\"\"? ?callfunc:string=\"MK_NULL\"? ?callline:int32=-1?"
 
#define Raise_doc   "MkErrorC::Raise $err (const)"
 
#define Reset_doc   "MkErrorC::Reset $err ?callfunc:string=\"MK_NULL\"? ?callline:int32=-1? ?force:bool=false?"
 
#define SetABORT_doc   "MkErrorC::SetABORT $err ?detail:string=\"UNKNOWN\"? ?callfunc:string=\"MK_NULL\"?"
 
#define SetC_doc   "MkErrorC::SetC $err message:string ?callfunc:string=\"MK_NULL\"? ?errnum:int32=-1?"
 
#define SetCONTINUE_doc   "MkErrorC::SetCONTINUE $err"
 
#define SetCode_doc   "MkErrorC::SetCode $err code:MkErrorE"
 
#define SetEXIT_doc   "MkErrorC::SetEXIT $err ?callfunc:string=\"MK_NULL\"?"
 
#define SetSOCKET_doc   "MkErrorC::SetSOCKET $err ?detail:string=\"UNKNOWN\"? ?callfunc:string=\"MK_NULL\"?"
 
#define Stack_doc   "MkErrorE [MkErrorC::Stack $err ?callfunc:string=\"MK_NULL\"? ?callfile:string=\"MK_NULL\"? ?callline:int32=-1?]"
 
#define StackFormat_doc   "MkErrorC::StackFormat $err ?callfunc:string=\"MK_NULL\"? ?callfile:string=\"MK_NULL\"? ?callline:int32=-1?"
 
#define PanicC_doc   "MkErrorC::PanicC fmtobj:MkObjectC callfunc:string errnum:int32 message:string"
 
#define PanicDEFAULT_doc   "MkErrorC::PanicDEFAULT ?fmtobj:MkObjectC=NULL? ?callfunc:string=\"MK_NULL\"?"
 
#define MkErrorCatchTmpl(...)
 

Functions

static MK_PTR atlmkkernel_MkErrorC_selfCreate (MK_RT mkrt, MK_OBJ const obj, MK_PTR const env)
 
static void atlmkkernel_MkErrorC_selfDelete (MK_RT mkrt, MK_PTR selfP, MK_PTR const env)
 
static void atlmkkernel_MkErrorC_selfUnlink (MK_RT mkrt, MK_PTR selfP, MK_PTR const env)
 
static OT_ProcRet atlmkkernel_MkErrorC_HandleResolve (OtClass_ARGS)
  Atl: (static) MkErrorC [MkErrorC::HandleResolve netHdl:MK_HDL] C-API
Handle-Resolve-Slot - return a MkErrorC from netHdl or "MK_NULL" if invalid…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet atlmkkernel_MkErrorC_HandleGet (MkErrorC_ARGS)
 
static OT_ProcRet atlmkkernel_MkErrorC_Next (MkErrorC_ARGS)
  Atl: MkErrorC [MkErrorC::Next $err] C-API
get next instance from linked-list of MkErrorS type
 
static OT_ProcRet atlmkkernel_MkErrorC_Prev (MkErrorC_ARGS)
  Atl: MkErrorC [MkErrorC::Prev $err] C-API
get previous instance from linked-list of MkErrorS type
 
static OT_ProcRet atlmkkernel_MkErrorC_Instances (OtClass_ARGS)
  Atl: (static) MkErrorC [MkErrorC::Instances] C-API
get head-instance from linked-list of MkErrorS type …
 
static OT_ProcRet atlmkkernel_MkErrorC_GetNull (OtClass_ARGS)
  Atl: (static) MkErrorC [MkErrorC::GetNull] C-API
Null-Slot - return a MkErrorC typed NULL instance …
 
static OT_ProcRet atlmkkernel_MkErrorC_GetCode (MkErrorC_ARGS)
  Atl: MkErrorE [MkErrorC::GetCode $err] C-API
get the value of MkErrorS::code
 
static OT_ProcRet atlmkkernel_MkErrorC_GetNum (MkErrorC_ARGS)
  Atl: int32 [MkErrorC::GetNum $err] C-API
get the MkErrorS::num. The number can be used as exit-code …
 
static OT_ProcRet atlmkkernel_MkErrorC_GetSize (MkErrorC_ARGS)
  Atl: long [MkErrorC::GetSize $err] C-API
get the error-message-size from the exception-object
 
static OT_ProcRet atlmkkernel_MkErrorC_GetText (MkErrorC_ARGS)
  Atl: string [MkErrorC::GetText $err] C-API
get the MkErrorS::text
 
static OT_ProcRet atlmkkernel_MkErrorC_Catch (MkErrorC_ARGS)
  Atl: MkErrorC [MkErrorC::Catch $err ?exception:errorCode=NULL? ?callfunc:string="MK_NULL"?] C-API
convert a programming-language-error into an atlmkkernel error …
 
static OT_ProcRet atlmkkernel_MkErrorC_Cleanup (MkErrorC_ARGS)
  Atl: MkErrorC::Cleanup $err ?callfunc:string="MK_NULL"? ?callline:int32=-1? C-API
cleanup and print unwanted active error …
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet atlmkkernel_MkErrorC_Log (MkErrorC_ARGS)
 
static OT_ProcRet atlmkkernel_MkErrorC_Println (MkErrorC_ARGS)
  Atl: MkErrorC::Println $err ?msg:string=""? ?callfunc:string="MK_NULL"? ?callline:int32=-1? C-API
print the default-error to the MkLogFileC (default: stderr) and clear the error afterwards …
 
static OT_ProcRet atlmkkernel_MkErrorC_Reset (MkErrorC_ARGS)
  Atl: MkErrorC::Reset $err ?callfunc:string="MK_NULL"? ?callline:int32=-1? ?force:bool=false? C-API
This function clears the err and resets to MK_OK
 
static OT_ProcRet atlmkkernel_MkErrorC_Stack (MkErrorC_ARGS)
  Atl: MkErrorE [MkErrorC::Stack $err ?callfunc:string="MK_NULL"? ?callfile:string="MK_NULL"? ?callline:int32=-1?] C-API
check on error and if yes append an ErrorStackFormat to the error-message
 
static OT_ProcRet atlmkkernel_MkErrorC_StackFormat (MkErrorC_ARGS)
  Atl: MkErrorC::StackFormat $err ?callfunc:string="MK_NULL"? ?callfile:string="MK_NULL"? ?callline:int32=-1? C-API
append an ensemble of func, file and line to the error-message
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet atlmkkernel_MkErrorC_ToString (MkErrorC_ARGS)
 
static OT_ProcRet atlmkkernel_MkErrorC_NoRaise (MkErrorC_ARGS)
  Atl: MkErrorC [MkErrorC::NoRaise $err] C-API
ignore the next return of MK_ERROR and do not raise an target-language-exception
 
static OT_ProcRet atlmkkernel_MkErrorC_AppendC (MkErrorC_ARGS)
  Atl: MkErrorC::AppendC $err message:string C-API
append the message to the MkErrorS::text
 
static OT_ProcRet atlmkkernel_MkErrorC_Raise (MkErrorC_ARGS)
  Atl: MkErrorC::Raise $err C-API
convert an atlmkkernel error into an programming-language-error and raise afterwards. …
 
static OT_ProcRet atlmkkernel_MkErrorC_SetC (MkErrorC_ARGS)
  Atl: MkErrorC::SetC $err message:string ?callfunc:string="MK_NULL"? ?errnum:int32=-1? C-API
'set' and 'raise' the MkErrorC using a string-message and a errnum-number
 
static OT_ProcRet atlmkkernel_MkErrorC_PanicC (OtClass_ARGS)
  Atl: (static) MkErrorC::PanicC fmtobj:MkObjectC callfunc:string errnum:int32 message:string C-API
do a panic with string as argument …
 
static OT_ProcRet atlmkkernel_MkErrorC_PanicDEFAULT (OtClass_ARGS)
  Atl: (static) MkErrorC::PanicDEFAULT ?fmtobj:MkObjectC=NULL? ?callfunc:string="MK_NULL"? C-API
make panic from MkErrorDEFAULT_RT …
 
static OT_ProcRet atlmkkernel_MkErrorC_IsABORT (MkErrorC_ARGS)
  Atl: bool [MkErrorC::IsABORT $err] C-API
check on ABORT signal …
 
static OT_ProcRet atlmkkernel_MkErrorC_IsEXIT (MkErrorC_ARGS)
  Atl: bool [MkErrorC::IsEXIT $err] C-API
check on APPLICATION-EXIT error …
 
static OT_ProcRet atlmkkernel_MkErrorC_IsSOCKET (MkErrorC_ARGS)
  Atl: bool [MkErrorC::IsSOCKET $err] C-API
check on SOCKET-DOWN error …
 
static OT_ProcRet atlmkkernel_MkErrorC_IsTIMEOUT (MkErrorC_ARGS)
  Atl: bool [MkErrorC::IsTIMEOUT $err] C-API
check on TIMEOUT error …
 
static OT_ProcRet atlmkkernel_MkErrorC_SetABORT (MkErrorC_ARGS)
  Atl: MkErrorC::SetABORT $err ?detail:string="UNKNOWN"? ?callfunc:string="MK_NULL"? C-API
send the ABORT signal to the calling stack…
 
static OT_ProcRet atlmkkernel_MkErrorC_SetCONTINUE (MkErrorC_ARGS)
  Atl: MkErrorC::SetCONTINUE $err C-API
signal end of processing in an MqMqEventIF callback …
 
static OT_ProcRet atlmkkernel_MkErrorC_SetCode (MkErrorC_ARGS)
  Atl: MkErrorC::SetCode $err code:MkErrorE C-API
set the MkErrorS::code value …
 
static OT_ProcRet atlmkkernel_MkErrorC_SetEXIT (MkErrorC_ARGS)
  Atl: MkErrorC::SetEXIT $err ?callfunc:string="MK_NULL"? C-API
finish the current callback, return to toplevel and MqExit the application …
 
static OT_ProcRet atlmkkernel_MkErrorC_SetSOCKET (MkErrorC_ARGS)
  Atl: MkErrorC::SetSOCKET $err ?detail:string="UNKNOWN"? ?callfunc:string="MK_NULL"? C-API
create SOCKET-DOWN error …
 
static OT_ProcRet atlmkkernel_MkErrorC_DEFAULT (OtClass_ARGS)
  Atl: (static) MkErrorC [MkErrorC::DEFAULT] C-API
default-system-error - default-error
 
static OT_ProcRet atlmkkernel_MkErrorC_FORMAT (OtClass_ARGS)
  Atl: (static) MkErrorC [MkErrorC::FORMAT ?fmtobj:MkObjectC=NULL?] C-API
system-error-format - format and return the default-error
 
static OT_ProcRet atlmkkernel_MkErrorC_IGNORE (OtClass_ARGS)
  Atl: (static) MkErrorC [MkErrorC::IGNORE] C-API
ignore-system-error - ignore the next error …
 
static OT_ProcRet atlmkkernel_MkErrorC_PRINT (OtClass_ARGS)
  Atl: (static) MkErrorC [MkErrorC::PRINT] C-API
ignore-system-error - print the next error into MkLogFileC
 
static OT_ProcRet atlmkkernel_MkErrorC_Dup (MkErrorC_ARGS)
  Atl: (constructor) MkErrorC [MkErrorC::Dup $srce] C-API
Dup-Constructor - create a new MkErrorC instance as copy from an existing MkErrorC instance …
 
static OT_ProcRet atlmkkernel_MkErrorC_Copy (MkErrorC_ARGS)
  Atl: MkErrorC::Copy $dest srce:MkErrorC C-API
Copy-Constructor - sync an existing MkErrorC instance with the values from an existing MkErrorC instance …
 
int atlmkkernel_pMkErrorC_Init (OT_MK_ARGS OT_NS_T ns)
 

Variables

static const OtObjProcDefS atlmkkernel_sOtClassDef []
 
static const OtObjProcDefS atlmkkernel_sInstanceDef []
 

Detailed Description

tag: nhi1-release-250425

Definition in file MkErrorC_atl.c.

Macro Definition Documentation

◆ AppendC_doc

#define AppendC_doc   "MkErrorC::AppendC $err message:string"

Definition at line 118 of file MkErrorC_atl.c.

◆ Catch_doc

#define Catch_doc   "MkErrorC [MkErrorC::Catch $err ?exception:errorCode=NULL? ?callfunc:string=\"MK_NULL\"?]"

Definition at line 112 of file MkErrorC_atl.c.

◆ ClassInit

#define ClassInit

Definition at line 57 of file MkErrorC_atl.c.

57#define ClassInit \
58 /* if not already done, initialize NEW META type */ \
59 if (MkErrorCTT == NULL) MkErrorCTT = MkErrorSTT; \
60 \
61 /* protect against double call */ \
62 if (MkErrorCTT->selfCreate == NS(MkErrorC_selfCreate)) return MK_OK; \
63 \
64 /* add "selfCreate" and "selfDelete" feature to the META-Class */ \
65 MkErrorCTT->selfCreate = NS(MkErrorC_selfCreate); \
66 MkErrorCTT->selfDelete = NS(MkErrorC_selfDelete); \
67 MkErrorCTT->selfUnlink = NS(MkErrorC_selfUnlink); \
68 \
69 /* create the ATL-class */ \
70 OT_CLASS = AltClassDef(MkErrorCTT,&amkrt->AtlMkErrorC_NS); \
71 if (OT_CLASS == NULL) goto error; \
72 OT_REF_INCR(OT_CLASS); \
73 \
74 /* create the ATL static Methods */ \
75 check_LNG(AtlUnknownSetup (NS(sOtClassDef),amkrt)) goto error; \
76 \
77 /* create the ATL instance Methods */ \
78 check_LNG(AtlUnknownSetup (NS(sInstanceDef),amkrt)) goto error; \
79 \
80 /* after class was modified, recompile the class */ \
81 RL_init(2, recompile, RL_T(0,RecompileN)); RL_O(1,OT_CLASS) ; \
82 int retI = RL_EvalEx(0); \
83 if (retI != TCL_OK) return retI; \
84 \
85 /* define the "NULL" object */ \
86 OT_NULL = AtomCreateNULL(OT_CLASS, "::MkErrorC::MK_NULL", (MK_PTR)amkrt); \
87 if (OT_NULL == NULL) goto error; \
88 OT_REF_INCR(OT_NULL);

◆ Cleanup_doc

#define Cleanup_doc   "MkErrorC::Cleanup $err ?callfunc:string=\"MK_NULL\"? ?callline:int32=-1?"

Definition at line 119 of file MkErrorC_atl.c.

◆ Copy_doc

#define Copy_doc   "MkErrorC::Copy $dest srce:MkErrorC"

Definition at line 120 of file MkErrorC_atl.c.

◆ DEFAULT_doc

#define DEFAULT_doc   "MkErrorC [MkErrorC::DEFAULT]"

Definition at line 100 of file MkErrorC_atl.c.

◆ Dup_doc

#define Dup_doc   "MkErrorC [MkErrorC::Dup $srce] (const)"

Definition at line 109 of file MkErrorC_atl.c.

◆ FORMAT_doc

#define FORMAT_doc   "MkErrorC [MkErrorC::FORMAT ?fmtobj:MkObjectC=NULL?]"

Definition at line 101 of file MkErrorC_atl.c.

◆ GetCode_doc

#define GetCode_doc   "MkErrorE [MkErrorC::GetCode $err] (const)"

Definition at line 121 of file MkErrorC_atl.c.

◆ GetNull_doc

#define GetNull_doc   "MkErrorC [MkErrorC::GetNull]"

Definition at line 102 of file MkErrorC_atl.c.

◆ GetNum_doc

#define GetNum_doc   "int32 [MkErrorC::GetNum $err] (const)"

Definition at line 122 of file MkErrorC_atl.c.

◆ GetSize_doc

#define GetSize_doc   "long [MkErrorC::GetSize $err] (const)"

Definition at line 123 of file MkErrorC_atl.c.

◆ GetText_doc

#define GetText_doc   "string [MkErrorC::GetText $err] (const)"

Definition at line 124 of file MkErrorC_atl.c.

◆ HandleResolve_doc

#define HandleResolve_doc   "MkErrorC [MkErrorC::HandleResolve netHdl:MK_HDL]"

Definition at line 103 of file MkErrorC_atl.c.

◆ IGNORE_doc

#define IGNORE_doc   "MkErrorC [MkErrorC::IGNORE]"

Definition at line 104 of file MkErrorC_atl.c.

◆ Instances_doc

#define Instances_doc   "MkErrorC [MkErrorC::Instances]"

Definition at line 105 of file MkErrorC_atl.c.

◆ IsABORT_doc

#define IsABORT_doc   "bool [MkErrorC::IsABORT $err] (const)"

Definition at line 126 of file MkErrorC_atl.c.

◆ IsEXIT_doc

#define IsEXIT_doc   "bool [MkErrorC::IsEXIT $err]"

Definition at line 127 of file MkErrorC_atl.c.

◆ IsSOCKET_doc

#define IsSOCKET_doc   "bool [MkErrorC::IsSOCKET $err] (const)"

Definition at line 128 of file MkErrorC_atl.c.

◆ IsTIMEOUT_doc

#define IsTIMEOUT_doc   "bool [MkErrorC::IsTIMEOUT $err] (const)"

Definition at line 129 of file MkErrorC_atl.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "MkErrorC_atl.c"

Definition at line 11 of file MkErrorC_atl.c.

◆ MkErrorCatchTmpl

#define MkErrorCatchTmpl ( ...)
Value:
MK(MkExceptionC_Catch)(OT_Prefix_CALL __VA_ARGS__)
#define MK(n)
#define OT_Prefix_CALL

Definition at line 157 of file MkErrorC_atl.c.

◆ Next_doc

#define Next_doc   "MkErrorC [MkErrorC::Next $err]"

Definition at line 113 of file MkErrorC_atl.c.

◆ NoRaise_doc

#define NoRaise_doc   "MkErrorC [MkErrorC::NoRaise $err]"

Definition at line 114 of file MkErrorC_atl.c.

◆ OT_CLASS

#define OT_CLASS   amkrt->AtlMkErrorC

Definition at line 15 of file MkErrorC_atl.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "MkErrorC"

Definition at line 17 of file MkErrorC_atl.c.

◆ OT_NULL

#define OT_NULL   amkrt->AtlMkErrorC_MK_NULL

Definition at line 16 of file MkErrorC_atl.c.

◆ OT_retObj_CONSTR

#define OT_retObj_CONSTR ( x)
Value:
#define OT_SELF
#define AtomInit(...)
#define OT_retObj_SET(val)
#define MkErrorC_X2obj(x)

Definition at line 54 of file MkErrorC_atl.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   SetupHdlFromMetaData_2(MK_ERR)

Definition at line 47 of file MkErrorC_atl.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   SetupHdlFromMetaData__null_allow_2(MK_ERR)

Definition at line 48 of file MkErrorC_atl.c.

◆ OT_SETUP_hdl_constr

#define OT_SETUP_hdl_constr   SetupHdlConstr(MkErrorC)

Definition at line 50 of file MkErrorC_atl.c.

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   SetupHdlFromMetaData__null_allow_2(MK_ERR)

Definition at line 49 of file MkErrorC_atl.c.

◆ OT_SETUP_hdl_static

#define OT_SETUP_hdl_static   SetupHdlStatic(MkErrorC)

Definition at line 52 of file MkErrorC_atl.c.

◆ OT_SETUP_hdl_static_constr

#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static

Definition at line 51 of file MkErrorC_atl.c.

◆ PanicC_doc

#define PanicC_doc   "MkErrorC::PanicC fmtobj:MkObjectC callfunc:string errnum:int32 message:string"

Definition at line 145 of file MkErrorC_atl.c.

◆ PanicDEFAULT_doc

#define PanicDEFAULT_doc   "MkErrorC::PanicDEFAULT ?fmtobj:MkObjectC=NULL? ?callfunc:string=\"MK_NULL\"?"

Definition at line 146 of file MkErrorC_atl.c.

◆ Prev_doc

#define Prev_doc   "MkErrorC [MkErrorC::Prev $err]"

Definition at line 115 of file MkErrorC_atl.c.

◆ PRINT_doc

#define PRINT_doc   "MkErrorC [MkErrorC::PRINT]"

Definition at line 106 of file MkErrorC_atl.c.

◆ Println_doc

#define Println_doc   "MkErrorC::Println $err ?msg:string=\"\"? ?callfunc:string=\"MK_NULL\"? ?callline:int32=-1?"

Definition at line 131 of file MkErrorC_atl.c.

◆ Raise_doc

#define Raise_doc   "MkErrorC::Raise $err (const)"

Definition at line 132 of file MkErrorC_atl.c.

◆ Reset_doc

#define Reset_doc   "MkErrorC::Reset $err ?callfunc:string=\"MK_NULL\"? ?callline:int32=-1? ?force:bool=false?"

Definition at line 133 of file MkErrorC_atl.c.

◆ SELF2HDL

#define SELF2HDL ( O)
Value:
#define VAL2MNG(val)
static MK_ERR MkErr(MK_MNG mng)
cast a unknown-object into an MkErrorS pointer or NULL if not possible

Definition at line 19 of file MkErrorC_atl.c.

◆ SetABORT_doc

#define SetABORT_doc   "MkErrorC::SetABORT $err ?detail:string=\"UNKNOWN\"? ?callfunc:string=\"MK_NULL\"?"

Definition at line 134 of file MkErrorC_atl.c.

◆ SetC_doc

#define SetC_doc   "MkErrorC::SetC $err message:string ?callfunc:string=\"MK_NULL\"? ?errnum:int32=-1?"

Definition at line 135 of file MkErrorC_atl.c.

◆ SetCode_doc

#define SetCode_doc   "MkErrorC::SetCode $err code:MkErrorE"

Definition at line 137 of file MkErrorC_atl.c.

◆ SetCONTINUE_doc

#define SetCONTINUE_doc   "MkErrorC::SetCONTINUE $err"

Definition at line 136 of file MkErrorC_atl.c.

◆ SetEXIT_doc

#define SetEXIT_doc   "MkErrorC::SetEXIT $err ?callfunc:string=\"MK_NULL\"?"

Definition at line 138 of file MkErrorC_atl.c.

◆ SetSOCKET_doc

#define SetSOCKET_doc   "MkErrorC::SetSOCKET $err ?detail:string=\"UNKNOWN\"? ?callfunc:string=\"MK_NULL\"?"

Definition at line 139 of file MkErrorC_atl.c.

◆ Stack_doc

#define Stack_doc   "MkErrorE [MkErrorC::Stack $err ?callfunc:string=\"MK_NULL\"? ?callfile:string=\"MK_NULL\"? ?callline:int32=-1?]"

Definition at line 140 of file MkErrorC_atl.c.

◆ StackFormat_doc

#define StackFormat_doc   "MkErrorC::StackFormat $err ?callfunc:string=\"MK_NULL\"? ?callfile:string=\"MK_NULL\"? ?callline:int32=-1?"

Definition at line 141 of file MkErrorC_atl.c.

Function Documentation

◆ atlmkkernel_MkErrorC_selfCreate()

static MK_PTR atlmkkernel_MkErrorC_selfCreate ( MK_RT mkrt,
MK_OBJ const obj,
MK_PTR const env )
static

Definition at line 28 of file MkErrorC_atl.c.

28 {
29 SETUP_amkrt(env);
30 return AtomMake(obj,OT_CLASS,NULL,NULL,env);
31}
#define AtomMake(...)
#define SETUP_amkrt(r)
#define OT_CLASS

◆ atlmkkernel_MkErrorC_selfDelete()

static void atlmkkernel_MkErrorC_selfDelete ( MK_RT mkrt,
MK_PTR selfP,
MK_PTR const env )
static

Definition at line 34 of file MkErrorC_atl.c.

34 {
35 OT_SELF_T selfO = selfP;
36 SETUP_amkrt(env);
37 MK(AtomDeleteHard) (OT_MK_CALL selfO);
38}
MOX_OBJ_T OT_SELF_T
#define OT_MK_CALL

◆ atlmkkernel_MkErrorC_selfUnlink()

static void atlmkkernel_MkErrorC_selfUnlink ( MK_RT mkrt,
MK_PTR selfP,
MK_PTR const env )
static

Definition at line 41 of file MkErrorC_atl.c.

41 {
42 OT_SELF_T selfO = selfP;
43 SETUP_amkrt(env);
44 return MK(AtomUnlink) (OT_MK_CALL selfO);
45}

◆ atlmkkernel_pMkErrorC_Init()

int atlmkkernel_pMkErrorC_Init ( OT_MK_ARGS OT_NS_T ns)

TCL API Public API

Definition at line 960 of file MkErrorC_atl.c.

961{
963
964 MkErrorDefaultC_TT->selfCreate = NS(MkErrorC_selfCreate);
965 MkErrorDefaultC_TT->selfDelete = NS(MkErrorC_selfDelete);
966 MkErrorDefaultC_TT->selfUnlink = NS(MkErrorC_selfUnlink);
967
968 return TCL_OK;
969error:
970 return TCL_ERROR;
971}
#define NS(n)
#define ClassInit
#define MkErrorDefaultC_TT
class as MkTypeS-class-type, useable in a class-macro as: class##_TT …

Variable Documentation

◆ atlmkkernel_sInstanceDef

const OtObjProcDefS atlmkkernel_sInstanceDef[]
static

Definition at line 902 of file MkErrorC_atl.c.

902 {
903 // BEGIN-OBJ - created by 'atl_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
904
905 // doc-key: MkErrorC,MkError,oCx
906 { "::MkErrorC::Dup" , NS(MkErrorC_Dup) },
907
908 // doc-key: MkErrorC,MkError,oc_
909 { "::MkErrorC::Catch" , NS(MkErrorC_Catch) },
910 { "::MkErrorC::Next" , NS(MkErrorC_Next) },
911 { "::MkErrorC::NoRaise" , NS(MkErrorC_NoRaise) },
912 { "::MkErrorC::Prev" , NS(MkErrorC_Prev) },
913
914 // doc-key: MkErrorC,MkError,om_
915 { "::MkErrorC::AppendC" , NS(MkErrorC_AppendC) },
916 { "::MkErrorC::Cleanup" , NS(MkErrorC_Cleanup) },
917 { "::MkErrorC::Copy" , NS(MkErrorC_Copy) },
918 { "::MkErrorC::GetCode" , NS(MkErrorC_GetCode) },
919 { "::MkErrorC::GetNum" , NS(MkErrorC_GetNum) },
920 { "::MkErrorC::GetSize" , NS(MkErrorC_GetSize) },
921 { "::MkErrorC::GetText" , NS(MkErrorC_GetText) },
922 // skip class-overload: HandleGet → MkObjectHandleGet
923 { "::MkErrorC::IsABORT" , NS(MkErrorC_IsABORT) },
924 { "::MkErrorC::IsEXIT" , NS(MkErrorC_IsEXIT) },
925 { "::MkErrorC::IsSOCKET" , NS(MkErrorC_IsSOCKET) },
926 { "::MkErrorC::IsTIMEOUT" , NS(MkErrorC_IsTIMEOUT) },
927 // skip class-overload: Log → MkObjectLog
928 { "::MkErrorC::Println" , NS(MkErrorC_Println) },
929 { "::MkErrorC::Raise" , NS(MkErrorC_Raise) },
930 { "::MkErrorC::Reset" , NS(MkErrorC_Reset) },
931 { "::MkErrorC::SetABORT" , NS(MkErrorC_SetABORT) },
932 { "::MkErrorC::SetC" , NS(MkErrorC_SetC) },
933 { "::MkErrorC::SetCONTINUE" , NS(MkErrorC_SetCONTINUE) },
934 { "::MkErrorC::SetCode" , NS(MkErrorC_SetCode) },
935 { "::MkErrorC::SetEXIT" , NS(MkErrorC_SetEXIT) },
936 { "::MkErrorC::SetSOCKET" , NS(MkErrorC_SetSOCKET) },
937 { "::MkErrorC::Stack" , NS(MkErrorC_Stack) },
938 { "::MkErrorC::StackFormat" , NS(MkErrorC_StackFormat) },
939 // skip class-overload: ToString → MkObjectToString
940
941 // END-OBJ - created by 'atl_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
942 { NULL }
943};

◆ atlmkkernel_sOtClassDef

const OtObjProcDefS atlmkkernel_sOtClassDef[]
static
Initial value:
= {
{ "::MkErrorC::DEFAULT" , atlmkkernel_MkErrorC_DEFAULT },
{ "::MkErrorC::FORMAT" , atlmkkernel_MkErrorC_FORMAT },
{ "::MkErrorC::GetNull" , atlmkkernel_MkErrorC_GetNull },
{ "::MkErrorC::HandleResolve" , atlmkkernel_MkErrorC_HandleResolve },
{ "::MkErrorC::IGNORE" , atlmkkernel_MkErrorC_IGNORE },
{ "::MkErrorC::Instances" , atlmkkernel_MkErrorC_Instances },
{ "::MkErrorC::PRINT" , atlmkkernel_MkErrorC_PRINT },
{ "::MkErrorC::PanicC" , atlmkkernel_MkErrorC_PanicC },
{ "::MkErrorC::PanicDEFAULT" , atlmkkernel_MkErrorC_PanicDEFAULT },
{ NULL }
}
static OT_ProcRet atlmkkernel_MkErrorC_GetNull(OtClass_ARGS)
Atl: (static) MkErrorC [MkErrorC::GetNull] → C-API Null-Slot - return a MkErrorC typed NULL inst...
static OT_ProcRet atlmkkernel_MkErrorC_HandleResolve(OtClass_ARGS)
Atl: (static) MkErrorC [MkErrorC::HandleResolve netHdl:MK_HDL] → C-API Handle-Resolve-Slot - ret...
static OT_ProcRet atlmkkernel_MkErrorC_Instances(OtClass_ARGS)
Atl: (static) MkErrorC [MkErrorC::Instances] → C-API get head-instance from linked-list of MkErr...
static OT_ProcRet atlmkkernel_MkErrorC_PanicC(OtClass_ARGS)
Atl: (static) MkErrorC::PanicC fmtobj:MkObjectC callfunc:string errnum:int32 message:string → C-API ...
static OT_ProcRet atlmkkernel_MkErrorC_PanicDEFAULT(OtClass_ARGS)
Atl: (static) MkErrorC::PanicDEFAULT ?fmtobj:MkObjectC=NULL? ?callfunc:string="MK_NULL"?...
static OT_ProcRet atlmkkernel_MkErrorC_DEFAULT(OtClass_ARGS)
Atl: (static) MkErrorC [MkErrorC::DEFAULT] → C-API default-system-error - default-error …
static OT_ProcRet atlmkkernel_MkErrorC_FORMAT(OtClass_ARGS)
Atl: (static) MkErrorC [MkErrorC::FORMAT ?fmtobj:MkObjectC=NULL?] → C-API system-error-format - ...
static OT_ProcRet atlmkkernel_MkErrorC_IGNORE(OtClass_ARGS)
Atl: (static) MkErrorC [MkErrorC::IGNORE] → C-API ignore-system-error - ignore the next error …
static OT_ProcRet atlmkkernel_MkErrorC_PRINT(OtClass_ARGS)
Atl: (static) MkErrorC [MkErrorC::PRINT] → C-API ignore-system-error - print the next error into...

METHOD API

Definition at line 880 of file MkErrorC_atl.c.

880 {
881 // BEGIN-CLASS - created by 'atl_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
882
883 // doc-key: MkErrorC,MkError,sc_
884 { "::MkErrorC::DEFAULT" , NS(MkErrorC_DEFAULT) },
885 { "::MkErrorC::FORMAT" , NS(MkErrorC_FORMAT) },
886 { "::MkErrorC::GetNull" , NS(MkErrorC_GetNull) },
887 { "::MkErrorC::HandleResolve" , NS(MkErrorC_HandleResolve) },
888 { "::MkErrorC::IGNORE" , NS(MkErrorC_IGNORE) },
889 { "::MkErrorC::Instances" , NS(MkErrorC_Instances) },
890 { "::MkErrorC::PRINT" , NS(MkErrorC_PRINT) },
891
892 // doc-key: MkErrorC,MkPanic,sm_
893 { "::MkErrorC::PanicC" , NS(MkErrorC_PanicC) },
894 { "::MkErrorC::PanicDEFAULT" , NS(MkErrorC_PanicDEFAULT) },
895
896 // END-CLASS - created by 'atl_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
897 { NULL }
898};