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

tag: nhi1-release-250425 More...

+ Include dependency graph for MkErrorC_rb.c:

Go to the source code of this file.

Macros

#define META_FILE_NAME   "MkErrorC_rb.c"
 
#define OT_CLASS   NS(MkErrorC)
 
#define OT_CLASS_NAME   "MkErrorC"
 
#define OT_LNG2META(O)
 
#define S_INIT   NS(sInit)(MK_RT_CALL_ONLY)
 
#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(MkErrorC);
 
#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(MkErrorC);
 
#define OT_SETUP_hdl_constr
 
#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(MkErrorC);
 
#define OT_SETUP_hdl_static
 
#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static
 
#define SetupRtFromObj_X(hdl)
 
#define SetupRtFromObj_XN(hdl)
 
#define DEFAULT_doc   "MkErrorC MkErrorC.DEFAULT()"
 
#define FORMAT_doc   "MkErrorC MkErrorC.FORMAT(?fmtobj:MkObjectC=nil?)"
 
#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 srce.Dup() (const)"
 
#define Catch_doc   "MkErrorC err.Catch(?exception:errorCode=nil?, ?callfunc:string=\"MK_NULL\"?)"
 
#define Next_doc   "MkErrorC err.Next()"
 
#define NoRaise_doc   "MkErrorC err.NoRaise()"
 
#define Prev_doc   "MkErrorC err.Prev()"
 
#define AppendC_doc   "err.AppendC(message:string)"
 
#define Cleanup_doc   "err.Cleanup(?callfunc:string=\"MK_NULL\"?, ?callline:int32=-1?)"
 
#define Copy_doc   "dest.Copy(srce:MkErrorC)"
 
#define GetCode_doc   "MkErrorE err.GetCode() (const)"
 
#define GetNum_doc   "int32 err.GetNum() (const)"
 
#define GetSize_doc   "long err.GetSize() (const)"
 
#define GetText_doc   "string err.GetText() (const)"
 
#define IsABORT_doc   "bool err.IsABORT() (const)"
 
#define IsEXIT_doc   "bool err.IsEXIT()"
 
#define IsSOCKET_doc   "bool err.IsSOCKET() (const)"
 
#define IsTIMEOUT_doc   "bool err.IsTIMEOUT() (const)"
 
#define Println_doc   "err.Println(?msg:string=\"\"?, ?callfunc:string=\"MK_NULL\"?, ?callline:int32=-1?)"
 
#define Raise_doc   "err.Raise() (const)"
 
#define Reset_doc   "err.Reset(?callfunc:string=\"MK_NULL\"?, ?callline:int32=-1?, ?force:bool=false?)"
 
#define SetABORT_doc   "err.SetABORT(?detail:string=\"UNKNOWN\"?, ?callfunc:string=\"MK_NULL\"?)"
 
#define SetC_doc   "err.SetC(message:string, ?callfunc:string=\"MK_NULL\"?, ?errnum:int32=-1?)"
 
#define SetCONTINUE_doc   "err.SetCONTINUE()"
 
#define SetCode_doc   "err.SetCode(code:MkErrorE)"
 
#define SetEXIT_doc   "err.SetEXIT(?callfunc:string=\"MK_NULL\"?)"
 
#define SetSOCKET_doc   "err.SetSOCKET(?detail:string=\"UNKNOWN\"?, ?callfunc:string=\"MK_NULL\"?)"
 
#define Stack_doc   "MkErrorE err.Stack(?callfunc:string=\"MK_NULL\"?, ?callfile:string=\"MK_NULL\"?, ?callline:int32=-1?)"
 
#define StackFormat_doc   "err.StackFormat(?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=nil?, ?callfunc:string=\"MK_NULL\"?)"
 
#define MkErrorCatchTmpl(...)
 

Functions

static void rbmkkernel_sMark (MK_PTR)
 
static OT_OBJ_T rbmkkernel_LNG_CONSTR (OT_CLS_T clazz, MK_MNG mng, int objc, VALUE *objv)
 
static MK_PTR rbmkkernel_MkErrorC_selfCreate (MK_RT mkrt, MK_OBJ obj, MK_PTR envP)
 
static void rbmkkernel_MkErrorC_selfDelete (MK_RT mkrt, MK_PTR ptr, MK_PTR envP)
 
static void rbmkkernel_MkErrorC_selfUnlink (MK_RT mkrt, MK_PTR ptr, MK_PTR envP)
 
static void rbmkkernel_sInit (MK_RT mkrt)
 
static OT_ProcRet rbmkkernel_MkErrorC_HandleResolve (OtClass_ARGS)
  Ruby: (static) MkErrorC MkErrorC.HandleResolve(netHdl:MK_HDL) C-API
Handle-Resolve-Slot - return a MkErrorC from netHdl or nil if invalid…
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet rbmkkernel_MkErrorC_HandleGet (MkErrorC_ARGS)
 
static OT_ProcRet rbmkkernel_MkErrorC_Next (MkErrorC_ARGS)
  Ruby: MkErrorC err.Next() C-API
get next instance from linked-list of MkErrorS type
 
static OT_ProcRet rbmkkernel_MkErrorC_Prev (MkErrorC_ARGS)
  Ruby: MkErrorC err.Prev() C-API
get previous instance from linked-list of MkErrorS type
 
static OT_ProcRet rbmkkernel_MkErrorC_Instances (OtClass_ARGS)
  Ruby: (static) MkErrorC MkErrorC.Instances() C-API
get head-instance from linked-list of MkErrorS type …
 
static OT_ProcRet rbmkkernel_MkErrorC_GetNull (OtClass_ARGS)
  Ruby: (static) MkErrorC MkErrorC.GetNull() C-API
Null-Slot - return a MkErrorC typed NULL instance …
 
static OT_ProcRet rbmkkernel_MkErrorC_GetCode (MkErrorC_ARGS)
  Ruby: MkErrorE err.GetCode() C-API
get the value of MkErrorS::code
 
static OT_ProcRet rbmkkernel_MkErrorC_GetNum (MkErrorC_ARGS)
  Ruby: int32 err.GetNum() C-API
get the MkErrorS::num. The number can be used as exit-code …
 
static OT_ProcRet rbmkkernel_MkErrorC_GetSize (MkErrorC_ARGS)
  Ruby: long err.GetSize() C-API
get the error-message-size from the exception-object
 
static OT_ProcRet rbmkkernel_MkErrorC_GetText (MkErrorC_ARGS)
  Ruby: string err.GetText() C-API
get the MkErrorS::text
 
static OT_ProcRet rbmkkernel_MkErrorC_Catch (MkErrorC_ARGS)
  Ruby: MkErrorC err.Catch(?exception:errorCode=nil?, ?callfunc:string="MK_NULL"?) C-API
convert a programming-language-error into an rbmkkernel error …
 
static OT_ProcRet rbmkkernel_MkErrorC_Cleanup (MkErrorC_ARGS)
  Ruby: err.Cleanup(?callfunc:string="MK_NULL"?, ?callline:int32=-1?) C-API
cleanup and print unwanted active error …
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet rbmkkernel_MkErrorC_Log (MkErrorC_ARGS)
 
static OT_ProcRet rbmkkernel_MkErrorC_Println (MkErrorC_ARGS)
  Ruby: err.Println(?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 rbmkkernel_MkErrorC_Reset (MkErrorC_ARGS)
  Ruby: err.Reset(?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 rbmkkernel_MkErrorC_Stack (MkErrorC_ARGS)
  Ruby: MkErrorE err.Stack(?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 rbmkkernel_MkErrorC_StackFormat (MkErrorC_ARGS)
  Ruby: err.StackFormat(?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 rbmkkernel_MkErrorC_ToString (MkErrorC_ARGS)
 
static OT_ProcRet rbmkkernel_MkErrorC_NoRaise (MkErrorC_ARGS)
  Ruby: MkErrorC err.NoRaise() C-API
ignore the next return of MK_ERROR and do not raise an target-language-exception
 
static OT_ProcRet rbmkkernel_MkErrorC_AppendC (MkErrorC_ARGS)
  Ruby: err.AppendC(message:string) C-API
append the message to the MkErrorS::text
 
static OT_ProcRet rbmkkernel_MkErrorC_Raise (MkErrorC_ARGS)
  Ruby: err.Raise() C-API
convert an rbmkkernel error into an programming-language-error and raise afterwards. …
 
static OT_ProcRet rbmkkernel_MkErrorC_SetC (MkErrorC_ARGS)
  Ruby: err.SetC(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 rbmkkernel_MkErrorC_PanicC (OtClass_ARGS)
  Ruby: (static) MkErrorC.PanicC(fmtobj:MkObjectC, callfunc:string, errnum:int32, message:string) C-API
do a panic with string as argument …
 
static OT_ProcRet rbmkkernel_MkErrorC_PanicDEFAULT (OtClass_ARGS)
  Ruby: (static) MkErrorC.PanicDEFAULT(?fmtobj:MkObjectC=nil?, ?callfunc:string="MK_NULL"?) C-API
make panic from MkErrorDEFAULT_RT …
 
static OT_ProcRet rbmkkernel_MkErrorC_IsABORT (MkErrorC_ARGS)
  Ruby: bool err.IsABORT() C-API
check on ABORT signal …
 
static OT_ProcRet rbmkkernel_MkErrorC_IsEXIT (MkErrorC_ARGS)
  Ruby: bool err.IsEXIT() C-API
check on APPLICATION-EXIT error …
 
static OT_ProcRet rbmkkernel_MkErrorC_IsSOCKET (MkErrorC_ARGS)
  Ruby: bool err.IsSOCKET() C-API
check on SOCKET-DOWN error …
 
static OT_ProcRet rbmkkernel_MkErrorC_IsTIMEOUT (MkErrorC_ARGS)
  Ruby: bool err.IsTIMEOUT() C-API
check on TIMEOUT error …
 
static OT_ProcRet rbmkkernel_MkErrorC_SetABORT (MkErrorC_ARGS)
  Ruby: err.SetABORT(?detail:string="UNKNOWN"?, ?callfunc:string="MK_NULL"?) C-API
send the ABORT signal to the calling stack…
 
static OT_ProcRet rbmkkernel_MkErrorC_SetCONTINUE (MkErrorC_ARGS)
  Ruby: err.SetCONTINUE() C-API
signal end of processing in an MqMqEventIF callback …
 
static OT_ProcRet rbmkkernel_MkErrorC_SetCode (MkErrorC_ARGS)
  Ruby: err.SetCode(code:MkErrorE) C-API
set the MkErrorS::code value …
 
static OT_ProcRet rbmkkernel_MkErrorC_SetEXIT (MkErrorC_ARGS)
  Ruby: err.SetEXIT(?callfunc:string="MK_NULL"?) C-API
finish the current callback, return to toplevel and MqExit the application …
 
static OT_ProcRet rbmkkernel_MkErrorC_SetSOCKET (MkErrorC_ARGS)
  Ruby: err.SetSOCKET(?detail:string="UNKNOWN"?, ?callfunc:string="MK_NULL"?) C-API
create SOCKET-DOWN error …
 
static OT_ProcRet rbmkkernel_MkErrorC_DEFAULT (OtClass_ARGS)
  Ruby: (static) MkErrorC MkErrorC.DEFAULT() C-API
default-system-error - default-error
 
static OT_ProcRet rbmkkernel_MkErrorC_FORMAT (OtClass_ARGS)
  Ruby: (static) MkErrorC MkErrorC.FORMAT(?fmtobj:MkObjectC=nil?) C-API
system-error-format - format and return the default-error
 
static OT_ProcRet rbmkkernel_MkErrorC_IGNORE (OtClass_ARGS)
  Ruby: (static) MkErrorC MkErrorC.IGNORE() C-API
ignore-system-error - ignore the next error …
 
static OT_ProcRet rbmkkernel_MkErrorC_PRINT (OtClass_ARGS)
  Ruby: (static) MkErrorC MkErrorC.PRINT() C-API
ignore-system-error - print the next error into MkLogFileC
 
static OT_ProcRet rbmkkernel_MkErrorC_Dup (MkErrorC_ARGS)
  Ruby: (constructor) MkErrorC srce.Dup() C-API
Dup-Constructor - create a new MkErrorC instance as copy from an existing MkErrorC instance …
 
static OT_ProcRet rbmkkernel_MkErrorC_Copy (MkErrorC_ARGS)
  Ruby: dest.Copy(srce:MkErrorC) C-API
Copy-Constructor - sync an existing MkErrorC instance with the values from an existing MkErrorC instance …
 
void rbmkkernel_MkErrorC_Init (MK_RT mkrt)
 

Variables

OT_CLS_T OT_CLASS
 
static MK_TYP MkErrorCTT = NULL
 
OT_OBJ_T rbmkkernel_MkErrorC_MK_NULL = 0
 
static rb_data_type_t rbmkkernel_MkErrorC_T
 
OT_CLS_T rbmkkernel_MkErrorC
 

Detailed Description

tag: nhi1-release-250425

Definition in file MkErrorC_rb.c.

Macro Definition Documentation

◆ AppendC_doc

#define AppendC_doc   "err.AppendC(message:string)"

Definition at line 127 of file MkErrorC_rb.c.

◆ Catch_doc

#define Catch_doc   "MkErrorC err.Catch(?exception:errorCode=nil?, ?callfunc:string=\"MK_NULL\"?)"

Definition at line 121 of file MkErrorC_rb.c.

◆ Cleanup_doc

#define Cleanup_doc   "err.Cleanup(?callfunc:string=\"MK_NULL\"?, ?callline:int32=-1?)"

Definition at line 128 of file MkErrorC_rb.c.

◆ Copy_doc

#define Copy_doc   "dest.Copy(srce:MkErrorC)"

Definition at line 129 of file MkErrorC_rb.c.

◆ DEFAULT_doc

#define DEFAULT_doc   "MkErrorC MkErrorC.DEFAULT()"

Definition at line 109 of file MkErrorC_rb.c.

◆ Dup_doc

#define Dup_doc   "MkErrorC srce.Dup() (const)"

Definition at line 118 of file MkErrorC_rb.c.

◆ FORMAT_doc

#define FORMAT_doc   "MkErrorC MkErrorC.FORMAT(?fmtobj:MkObjectC=nil?)"

Definition at line 110 of file MkErrorC_rb.c.

◆ GetCode_doc

#define GetCode_doc   "MkErrorE err.GetCode() (const)"

Definition at line 130 of file MkErrorC_rb.c.

◆ GetNull_doc

#define GetNull_doc   "MkErrorC MkErrorC.GetNull()"

Definition at line 111 of file MkErrorC_rb.c.

◆ GetNum_doc

#define GetNum_doc   "int32 err.GetNum() (const)"

Definition at line 131 of file MkErrorC_rb.c.

◆ GetSize_doc

#define GetSize_doc   "long err.GetSize() (const)"

Definition at line 132 of file MkErrorC_rb.c.

◆ GetText_doc

#define GetText_doc   "string err.GetText() (const)"

Definition at line 133 of file MkErrorC_rb.c.

◆ HandleResolve_doc

#define HandleResolve_doc   "MkErrorC MkErrorC.HandleResolve(netHdl:MK_HDL)"

Definition at line 112 of file MkErrorC_rb.c.

◆ IGNORE_doc

#define IGNORE_doc   "MkErrorC MkErrorC.IGNORE()"

Definition at line 113 of file MkErrorC_rb.c.

◆ Instances_doc

#define Instances_doc   "MkErrorC MkErrorC.Instances()"

Definition at line 114 of file MkErrorC_rb.c.

◆ IsABORT_doc

#define IsABORT_doc   "bool err.IsABORT() (const)"

Definition at line 135 of file MkErrorC_rb.c.

◆ IsEXIT_doc

#define IsEXIT_doc   "bool err.IsEXIT()"

Definition at line 136 of file MkErrorC_rb.c.

◆ IsSOCKET_doc

#define IsSOCKET_doc   "bool err.IsSOCKET() (const)"

Definition at line 137 of file MkErrorC_rb.c.

◆ IsTIMEOUT_doc

#define IsTIMEOUT_doc   "bool err.IsTIMEOUT() (const)"

Definition at line 138 of file MkErrorC_rb.c.

◆ META_FILE_NAME

#define META_FILE_NAME   "MkErrorC_rb.c"

Definition at line 10 of file MkErrorC_rb.c.

◆ MkErrorCatchTmpl

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

Method definition

Definition at line 170 of file MkErrorC_rb.c.

◆ Next_doc

#define Next_doc   "MkErrorC err.Next()"

Definition at line 122 of file MkErrorC_rb.c.

◆ NoRaise_doc

#define NoRaise_doc   "MkErrorC err.NoRaise()"

Definition at line 123 of file MkErrorC_rb.c.

◆ OT_CLASS

#define OT_CLASS   NS(MkErrorC)

Definition at line 14 of file MkErrorC_rb.c.

◆ OT_CLASS_NAME

#define OT_CLASS_NAME   "MkErrorC"

Definition at line 15 of file MkErrorC_rb.c.

◆ OT_LNG2META

#define OT_LNG2META ( 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 17 of file MkErrorC_rb.c.

◆ OT_SETUP_hdl

#define OT_SETUP_hdl   OT_SETUP_hdl_tmpl(MkErrorC);

Definition at line 87 of file MkErrorC_rb.c.

◆ OT_SETUP_hdl__null_allow

#define OT_SETUP_hdl__null_allow   OT_SETUP_hdl_tmpl__null_allow(MkErrorC);

Definition at line 88 of file MkErrorC_rb.c.

◆ OT_SETUP_hdl_constr

#define OT_SETUP_hdl_constr
Value:
OT_OBJ_T clazz = self; \
#define OT_OBJ_T
#define MkErrorC_type
same as MkErrorS but useable in a class-macro as: class##_type …
#define MkERROR
#define AllRtSetup_NULL

Definition at line 89 of file MkErrorC_rb.c.

89#define OT_SETUP_hdl_constr AllRtSetup_NULL; \
90 OT_OBJ_T clazz = self; \
91 MkErrorC_type hdl = (MkErrorC_type) &MkERROR;

◆ OT_SETUP_hdl_destr

#define OT_SETUP_hdl_destr   OT_SETUP_hdl_tmpl__null_allow(MkErrorC);

Definition at line 92 of file MkErrorC_rb.c.

◆ OT_SETUP_hdl_static

#define OT_SETUP_hdl_static
Value:
__attribute__((unused)) MK_TYP hdl = MkErrorC##_TT;
MkTypeS - class known as typ or type is used as class-base for a Managed-Object-Technology (MOT) type...

Definition at line 93 of file MkErrorC_rb.c.

93#define OT_SETUP_hdl_static AllRtSetup_NULL; \
94 __attribute__((unused)) MK_TYP hdl = MkErrorC##_TT;

◆ OT_SETUP_hdl_static_constr

#define OT_SETUP_hdl_static_constr   OT_SETUP_hdl_static

Definition at line 95 of file MkErrorC_rb.c.

◆ PanicC_doc

#define PanicC_doc   "MkErrorC.PanicC(fmtobj:MkObjectC, callfunc:string, errnum:int32, message:string)"

Definition at line 154 of file MkErrorC_rb.c.

◆ PanicDEFAULT_doc

#define PanicDEFAULT_doc   "MkErrorC.PanicDEFAULT(?fmtobj:MkObjectC=nil?, ?callfunc:string=\"MK_NULL\"?)"

Definition at line 155 of file MkErrorC_rb.c.

◆ Prev_doc

#define Prev_doc   "MkErrorC err.Prev()"

Definition at line 124 of file MkErrorC_rb.c.

◆ PRINT_doc

#define PRINT_doc   "MkErrorC MkErrorC.PRINT()"

Definition at line 115 of file MkErrorC_rb.c.

◆ Println_doc

#define Println_doc   "err.Println(?msg:string=\"\"?, ?callfunc:string=\"MK_NULL\"?, ?callline:int32=-1?)"

Definition at line 140 of file MkErrorC_rb.c.

◆ Raise_doc

#define Raise_doc   "err.Raise() (const)"

Definition at line 141 of file MkErrorC_rb.c.

◆ Reset_doc

#define Reset_doc   "err.Reset(?callfunc:string=\"MK_NULL\"?, ?callline:int32=-1?, ?force:bool=false?)"

Definition at line 142 of file MkErrorC_rb.c.

◆ S_INIT

#define S_INIT   NS(sInit)(MK_RT_CALL_ONLY)

Definition at line 69 of file MkErrorC_rb.c.

◆ SetABORT_doc

#define SetABORT_doc   "err.SetABORT(?detail:string=\"UNKNOWN\"?, ?callfunc:string=\"MK_NULL\"?)"

Definition at line 143 of file MkErrorC_rb.c.

◆ SetC_doc

#define SetC_doc   "err.SetC(message:string, ?callfunc:string=\"MK_NULL\"?, ?errnum:int32=-1?)"

Definition at line 144 of file MkErrorC_rb.c.

◆ SetCode_doc

#define SetCode_doc   "err.SetCode(code:MkErrorE)"

Definition at line 146 of file MkErrorC_rb.c.

◆ SetCONTINUE_doc

#define SetCONTINUE_doc   "err.SetCONTINUE()"

Definition at line 145 of file MkErrorC_rb.c.

◆ SetEXIT_doc

#define SetEXIT_doc   "err.SetEXIT(?callfunc:string=\"MK_NULL\"?)"

Definition at line 147 of file MkErrorC_rb.c.

◆ SetSOCKET_doc

#define SetSOCKET_doc   "err.SetSOCKET(?detail:string=\"UNKNOWN\"?, ?callfunc:string=\"MK_NULL\"?)"

Definition at line 148 of file MkErrorC_rb.c.

◆ SetupRtFromObj_X

#define SetupRtFromObj_X ( hdl)
Value:
#define AllRtSetup_X(x)

Definition at line 98 of file MkErrorC_rb.c.

◆ SetupRtFromObj_XN

#define SetupRtFromObj_XN ( hdl)
Value:
#define AllRtSetup_XN(x)

Definition at line 99 of file MkErrorC_rb.c.

◆ Stack_doc

#define Stack_doc   "MkErrorE err.Stack(?callfunc:string=\"MK_NULL\"?, ?callfile:string=\"MK_NULL\"?, ?callline:int32=-1?)"

Definition at line 149 of file MkErrorC_rb.c.

◆ StackFormat_doc

#define StackFormat_doc   "err.StackFormat(?callfunc:string=\"MK_NULL\"?, ?callfile:string=\"MK_NULL\"?, ?callline:int32=-1?)"

Definition at line 150 of file MkErrorC_rb.c.

Function Documentation

◆ rbmkkernel_LNG_CONSTR()

static OT_OBJ_T rbmkkernel_LNG_CONSTR ( OT_CLS_T clazz,
MK_MNG mng,
int objc,
VALUE * objv )
inlinestatic

Definition at line 46 of file MkErrorC_rb.c.

46 {
47 return MK(AtomObjCrt)(clazz,&NS(MkErrorC_T),mng,objc,objv);
48}
#define NS(n)
#define MkErrorC_T
class as MkTypeDefS-class-type, useable in a class-macro as: class##_T …

◆ rbmkkernel_MkErrorC_Init()

void rbmkkernel_MkErrorC_Init ( MK_RT mkrt)

Definition at line 781 of file MkErrorC_rb.c.

781 {
782
783 // init type
785 S_INIT;
786
787// CON/DE-Structor for default ERROR objects
788 MkErrorDefaultC_TT->selfCreate = MK(MkErrorC_selfCreate);
789 MkErrorDefaultC_TT->selfDelete = MK(MkErrorC_selfDelete);
790 MkErrorDefaultC_TT->selfUnlink = MK(MkErrorC_selfUnlink);
791
792// BEGIN-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
793
794// doc-key: MkErrorC,MkError,sc_
795OT_METH_O ( MkErrorC, DEFAULT, MkErrorC_DEFAULT )
796OT_METH_S ( MkErrorC, DEFAULT, MkErrorC_DEFAULT )
797OT_METH_O ( MkErrorC, FORMAT, MkErrorC_FORMAT )
798OT_METH_S ( MkErrorC, FORMAT, MkErrorC_FORMAT )
799OT_METH_O ( MkErrorC, GetNull, MkErrorC_GetNull )
800OT_METH_S ( MkErrorC, GetNull, MkErrorC_GetNull )
801OT_METH_O ( MkErrorC, HandleResolve, MkErrorC_HandleResolve )
802OT_METH_S ( MkErrorC, HandleResolve, MkErrorC_HandleResolve )
803OT_METH_O ( MkErrorC, IGNORE, MkErrorC_IGNORE )
804OT_METH_S ( MkErrorC, IGNORE, MkErrorC_IGNORE )
805OT_METH_O ( MkErrorC, Instances, MkErrorC_Instances )
806OT_METH_S ( MkErrorC, Instances, MkErrorC_Instances )
807OT_METH_O ( MkErrorC, PRINT, MkErrorC_PRINT )
808OT_METH_S ( MkErrorC, PRINT, MkErrorC_PRINT )
809
810// doc-key: MkErrorC,MkPanic,sm_
811OT_METH_O ( MkErrorC, PanicC, MkErrorC_PanicC )
812OT_METH_S ( MkErrorC, PanicC, MkErrorC_PanicC )
813OT_METH_O ( MkErrorC, PanicDEFAULT, MkErrorC_PanicDEFAULT )
814OT_METH_S ( MkErrorC, PanicDEFAULT, MkErrorC_PanicDEFAULT )
815
816// END-CLASS - created by 'rb_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
817
818// BEGIN-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
819
820// doc-key: MkErrorC,MkError,oCx
821OT_METH_O ( MkErrorC, Dup, MkErrorC_Dup )
822
823// doc-key: MkErrorC,MkError,oc_
824OT_METH_O ( MkErrorC, Catch, MkErrorC_Catch )
825OT_METH_O ( MkErrorC, Next, MkErrorC_Next )
826OT_METH_O ( MkErrorC, NoRaise, MkErrorC_NoRaise )
827OT_METH_O ( MkErrorC, Prev, MkErrorC_Prev )
828
829// doc-key: MkErrorC,MkError,om_
830OT_METH_O ( MkErrorC, AppendC, MkErrorC_AppendC )
831OT_METH_O ( MkErrorC, Cleanup, MkErrorC_Cleanup )
832OT_METH_O ( MkErrorC, Copy, MkErrorC_Copy )
833OT_METH_O ( MkErrorC, GetCode, MkErrorC_GetCode )
834OT_METH_O ( MkErrorC, GetNum, MkErrorC_GetNum )
835OT_METH_O ( MkErrorC, GetSize, MkErrorC_GetSize )
836OT_METH_O ( MkErrorC, GetText, MkErrorC_GetText )
837// skip class-overload: MkErrorHandleGet → HandleGet, MkErrorC_HandleGet
838OT_METH_O ( MkErrorC, IsABORT, MkErrorC_IsABORT )
839OT_METH_O ( MkErrorC, IsEXIT, MkErrorC_IsEXIT )
840OT_METH_O ( MkErrorC, IsSOCKET, MkErrorC_IsSOCKET )
841OT_METH_O ( MkErrorC, IsTIMEOUT, MkErrorC_IsTIMEOUT )
842// skip class-overload: MkErrorLog → Log, MkErrorC_Log
843OT_METH_O ( MkErrorC, Println, MkErrorC_Println )
844OT_METH_O ( MkErrorC, Raise, MkErrorC_Raise )
845OT_METH_O ( MkErrorC, Reset, MkErrorC_Reset )
846OT_METH_O ( MkErrorC, SetABORT, MkErrorC_SetABORT )
847OT_METH_O ( MkErrorC, SetC, MkErrorC_SetC )
848OT_METH_O ( MkErrorC, SetCONTINUE, MkErrorC_SetCONTINUE )
849OT_METH_O ( MkErrorC, SetCode, MkErrorC_SetCode )
850OT_METH_O ( MkErrorC, SetEXIT, MkErrorC_SetEXIT )
851OT_METH_O ( MkErrorC, SetSOCKET, MkErrorC_SetSOCKET )
852OT_METH_O ( MkErrorC, Stack, MkErrorC_Stack )
853OT_METH_O ( MkErrorC, StackFormat, MkErrorC_StackFormat )
854// skip class-overload: MkErrorToString → ToString, MkErrorC_ToString
855
856// END-OBJ - created by 'rb_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
857
858}
#define OT_METH_S(c, s, f)
#define OT_METH_O(c, s, f)
static MK_TYP MkErrorCTT
Definition MkErrorC_rb.c:22
#define S_INIT
Definition MkErrorC_rb.c:69
#define MkErrorC_TT
class as MkTypeS-class-type, useable in a class-macro as: class##_TT …
#define MkErrorDefaultC_TT
class as MkTypeS-class-type, useable in a class-macro as: class##_TT …
MkSelfCreateF selfCreate
"create" the "self" pointer

◆ rbmkkernel_MkErrorC_selfCreate()

static MK_PTR rbmkkernel_MkErrorC_selfCreate ( MK_RT mkrt,
MK_OBJ obj,
MK_PTR envP )
static

Definition at line 55 of file MkErrorC_rb.c.

55 {
56 OT_OBJ_T self = NS(LNG_CONSTR) (OT_CLASS, obj, 0, NULL);
57 return VAL2PTR(self);
58}
#define VAL2PTR(val)
#define OT_CLASS
Definition MkErrorC_rb.c:14

◆ rbmkkernel_MkErrorC_selfDelete()

static void rbmkkernel_MkErrorC_selfDelete ( MK_RT mkrt,
MK_PTR ptr,
MK_PTR envP )
static

Definition at line 60 of file MkErrorC_rb.c.

60 {
62}
#define PTR2VAL(nat)
#define OT_OBJECT_DELETE_HARD(obj)

◆ rbmkkernel_MkErrorC_selfUnlink()

static void rbmkkernel_MkErrorC_selfUnlink ( MK_RT mkrt,
MK_PTR ptr,
MK_PTR envP )
static

Definition at line 64 of file MkErrorC_rb.c.

64 {
65 OT_OBJ_T self = PTR2VAL(ptr);
66 RDATA(self)->data = NULL;
67}

◆ rbmkkernel_sInit()

static void rbmkkernel_sInit ( MK_RT mkrt)
static

Definition at line 70 of file MkErrorC_rb.c.

70 {
71
72 // add "selfCreate" and "selfDelete" feature to the MQ-MkErrorC-Type
73 MkErrorCTT->selfCreate = NS(MkErrorC_selfCreate);
74 MkErrorCTT->selfDelete = NS(MkErrorC_selfDelete);
75 MkErrorCTT->selfUnlink = NS(MkErrorC_selfUnlink);
76
77 // create the RUBY class
78 OT_CLASS = rb_define_class_under(OT_PKG, "MkErrorC", MK_BASE_CLASS);
79 rb_undef_alloc_func(OT_CLASS);
80
81 /* define the "NULL" object */
82 VALUE nullO = TypedData_Wrap_Struct (OT_CLASS, &NS(MkErrorC_T), MK_NULL);
83 NS(MkErrorC_MK_NULL) = nullO;
85}
#define OT_PKG
#define MK_BASE_CLASS
#define INCR_REF(valP)
#define MkErrorC_MK_NULL
#define MK_NULL
The Programming-Language-Micro-Kernel (PLMK) NULL value as nil in Ruby …
MkSelfUnlinkF selfUnlink
"unlink" the "self" pointer from META-Kernel
MkSelfDeleteF selfDelete
"delete" the "self" pointer

◆ rbmkkernel_sMark()

static void rbmkkernel_sMark ( MK_PTR mng)
static

Definition at line 778 of file MkErrorC_rb.c.

778 {
779}

Variable Documentation

◆ MkErrorCTT

MK_TYP MkErrorCTT = NULL
static

Definition at line 22 of file MkErrorC_rb.c.

◆ OT_CLASS

OT_CLS_T OT_CLASS

Definition at line 19 of file MkErrorC_rb.c.

◆ rbmkkernel_MkErrorC

OT_CLS_T rbmkkernel_MkErrorC

Definition at line 104 of file MkErrorC_rb.c.

◆ rbmkkernel_MkErrorC_MK_NULL

OT_OBJ_T rbmkkernel_MkErrorC_MK_NULL = 0

Definition at line 23 of file MkErrorC_rb.c.

◆ rbmkkernel_MkErrorC_T

rb_data_type_t rbmkkernel_MkErrorC_T
static
Initial value:
= {
"MkErrorC",
{
0,
0,
},
NULL,
NULL,
RUBY_TYPED_FREE_IMMEDIATELY
}
static void rbmkkernel_AtomDeleteSoft(MK_MNG)
static void rbmkkernel_sMark(MK_PTR)

Definition at line 29 of file MkErrorC_rb.c.

29 {
30 "MkErrorC",
31 {
32 NS(sMark),
33 MK(AtomDeleteSoft),
34 0, /* dsize */
35 0, /* reserved[1] */
36 },
37 NULL, /* parent */
38 NULL, /* data */
39 RUBY_TYPED_FREE_IMMEDIATELY
40};