theKernel 10.0
Loading...
Searching...
No Matches
MkErrorC_Signal_RB_API

MkErrorC - various functions to set and check a 'signal' on a MkErrorSMore...

+ Collaboration diagram for MkErrorC_Signal_RB_API:

Functions

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 …
 

Detailed Description

MkErrorC - various functions to set and check a 'signal' on a MkErrorS

Function Documentation

◆ rbmkkernel_MkErrorC_IsABORT()

static OT_ProcRet rbmkkernel_MkErrorC_IsABORT ( MkErrorC_ARGS )
static

Ruby: bool err.IsABORT() C-API
check on ABORT signal …

Definition at line 562 of file MkErrorC_rb.c.

562 {
567 end: MK_UNUSED /* LONG JUMP on error */
569}
#define OT_retObj_SET_BOL(nat)
#define OT_SETUP_NOARG(d)
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
#define IsABORT_doc
#define OT_SETUP_hdl
Definition MkErrorC_rb.c:87
bool MkErrorIsABORT(MK_ERRN const err)
check on ABORT signal …
#define MK_UNUSED
mark unnused variables and functions

◆ rbmkkernel_MkErrorC_IsEXIT()

static OT_ProcRet rbmkkernel_MkErrorC_IsEXIT ( MkErrorC_ARGS )
static

Ruby: bool err.IsEXIT() C-API
check on APPLICATION-EXIT error …

Definition at line 572 of file MkErrorC_rb.c.

572 {
577 end: MK_UNUSED /* LONG JUMP on error */
579}
#define IsEXIT_doc
bool MkErrorIsEXIT(MK_ERR const err)
check on APPLICATION-EXIT error …

◆ rbmkkernel_MkErrorC_IsSOCKET()

static OT_ProcRet rbmkkernel_MkErrorC_IsSOCKET ( MkErrorC_ARGS )
static

Ruby: bool err.IsSOCKET() C-API
check on SOCKET-DOWN error …

Definition at line 582 of file MkErrorC_rb.c.

582 {
587 end: MK_UNUSED /* LONG JUMP on error */
589}
#define IsSOCKET_doc
bool MkErrorIsSOCKET(MK_ERRN const err)
check on SOCKET-DOWN error …

◆ rbmkkernel_MkErrorC_IsTIMEOUT()

static OT_ProcRet rbmkkernel_MkErrorC_IsTIMEOUT ( MkErrorC_ARGS )
static

Ruby: bool err.IsTIMEOUT() C-API
check on TIMEOUT error …

Definition at line 592 of file MkErrorC_rb.c.

592 {
597 end: MK_UNUSED /* LONG JUMP on error */
599}
#define IsTIMEOUT_doc
bool MkErrorIsTIMEOUT(MK_ERRN const err)
check on TIMEOUT error …

◆ rbmkkernel_MkErrorC_SetABORT()

static OT_ProcRet rbmkkernel_MkErrorC_SetABORT ( MkErrorC_ARGS )
static

Ruby: err.SetABORT(?detail:string="UNKNOWN"?, ?callfunc:string="MK_NULL"?) C-API
send the ABORT signal to the calling stack…

Definition at line 602 of file MkErrorC_rb.c.

602 {
605 MK_STRN detail = "UNKNOWN";
607 MK_STRN callfunc = NULL;
610 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
611 MkErrorC_Check(hdl,MkErrorSetABORT (hdl, detail, callfunc));
613 end: MK_UNUSED /* LONG JUMP on error */
616}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_FRAME_CLEANUP
#define OT_retObj_SET_None
#define OT_GET_CALL_PROC
#define OT_CHECK_OPTIONAL(val)
#define MkErrorC_Check(mng, PROC)
#define OT_CHECK_STRN(val)
#define SetABORT_doc
#define MkErrorSetABORT(...)
const MK_STRB * MK_STRN
constant string pointer data-type
static bool MkSysStringIsNULL(MK_STRN str)
test if string is NULL or EMPTY …

◆ rbmkkernel_MkErrorC_SetCode()

static OT_ProcRet rbmkkernel_MkErrorC_SetCode ( MkErrorC_ARGS )
static

Ruby: err.SetCode(code:MkErrorE) C-API
set the MkErrorS::code value …

Definition at line 630 of file MkErrorC_rb.c.

630 {
633 enum MkErrorE code = 0;
636 MkErrorSetCode (hdl, code);
638 end: MK_UNUSED /* LONG JUMP on error */
640}
#define OT_SETUP_ONEARG(d)
#define OT_CHECK_REQUIRED(val)
#define SetCode_doc
#define MkErrorSetCode(...)
MkErrorE
collection for the different error-codes …
#define OT_CHECK_ENUM(ename, val)

◆ rbmkkernel_MkErrorC_SetCONTINUE()

static OT_ProcRet rbmkkernel_MkErrorC_SetCONTINUE ( MkErrorC_ARGS )
static

Ruby: err.SetCONTINUE() C-API
signal end of processing in an MqMqEventIF callback …

Definition at line 619 of file MkErrorC_rb.c.

619 {
623 MkErrorSetCONTINUE (hdl);
625 end: MK_UNUSED /* LONG JUMP on error */
627}
#define SetCONTINUE_doc
#define MkErrorSetCONTINUE(...)

◆ rbmkkernel_MkErrorC_SetEXIT()

static OT_ProcRet rbmkkernel_MkErrorC_SetEXIT ( MkErrorC_ARGS )
static

Ruby: err.SetEXIT(?callfunc:string="MK_NULL"?) C-API
finish the current callback, return to toplevel and MqExit the application …

Definition at line 643 of file MkErrorC_rb.c.

643 {
646 MK_STRN callfunc = NULL;
649 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
650 MkErrorC_Check(hdl,MkErrorSetEXIT (hdl, callfunc));
652 end: MK_UNUSED /* LONG JUMP on error */
655}
#define SetEXIT_doc
#define MkErrorSetEXIT(...)

◆ rbmkkernel_MkErrorC_SetSOCKET()

static OT_ProcRet rbmkkernel_MkErrorC_SetSOCKET ( MkErrorC_ARGS )
static

Ruby: err.SetSOCKET(?detail:string="UNKNOWN"?, ?callfunc:string="MK_NULL"?) C-API
create SOCKET-DOWN error …

Definition at line 658 of file MkErrorC_rb.c.

658 {
661 MK_STRN detail = "UNKNOWN";
663 MK_STRN callfunc = NULL;
666 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
667 MkErrorC_Check(hdl,MkErrorSetSOCKET (hdl, detail, callfunc));
669 end: MK_UNUSED /* LONG JUMP on error */
672}
#define SetSOCKET_doc
#define MkErrorSetSOCKET(...)