theKernel 10.0
Loading...
Searching...
No Matches
MkErrorC_Misc_ATL_API

MkErrorC - various functions to 'work' on a MkErrorSMore...

+ Collaboration diagram for MkErrorC_Misc_ATL_API:

Functions

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)
 

Detailed Description

MkErrorC - various functions to 'work' on a MkErrorS

Function Documentation

◆ atlmkkernel_MkErrorC_Catch()

static OT_ProcRet atlmkkernel_MkErrorC_Catch ( MkErrorC_ARGS )
static

Atl: MkErrorC [MkErrorC::Catch $err ?exception:errorCode=NULL? ?callfunc:string="MK_NULL"?] C-API
convert a programming-language-error into an atlmkkernel error …

Definition at line 342 of file MkErrorC_atl.c.

342 {
345 MK_EXP exception = NULL;
347 MK_STRN callfunc = NULL;
350 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
351 MK_ERR retVal = MkErrorCatchTmpl (hdl, exception, callfunc);
352 OT_retObj_SET_ERR(retVal);
353 goto end;
354 error:
356 end:
359}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_retObj_SET_Error
#define OT_FRAME_CLEANUP
#define OT_retObj_RETURN
#define OT_GET_CALL_PROC
#define OT_CHECK_OPTIONAL(val)
#define OT_retObj_SET_ERR(nat)
#define OT_CHECK_NOARGS
#define OT_CHECK_STRN(val)
#define OT_SETUP_hdl
#define Catch_doc
#define MkErrorCatchTmpl(...)
const MK_STRB * MK_STRN
constant string pointer data-type
MK_PTRB const * MK_EXP
exception object pointer
static bool MkSysStringIsNULL(MK_STRN str)
test if string is NULL or EMPTY …
#define OT_CHECK_EXP(val)
The data-type to store and handle the error-condition …

◆ atlmkkernel_MkErrorC_Cleanup()

static OT_ProcRet atlmkkernel_MkErrorC_Cleanup ( MkErrorC_ARGS )
static

Atl: MkErrorC::Cleanup $err ?callfunc:string="MK_NULL"? ?callline:int32=-1? C-API
cleanup and print unwanted active error …

Definition at line 364 of file MkErrorC_atl.c.

364 {
367 MK_STRN callfunc = NULL;
369 MK_I32 callline = -1;
372 if (callline == -1 ) {callline = OT_GET_CALL_LINE;}
373 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
374 MkErrorCleanup (hdl, callfunc, callline);
376 goto end;
377 error:
379 end:
382}
#define OT_CHECK_NI4(val)
#define OT_GET_CALL_LINE
#define OT_retObj_SET_None
#define Cleanup_doc
#define MkErrorCleanup(...)
signed int MK_I32
4 byte integer data-type

◆ atlmkkernel_MkErrorC_Log()

MK_DEPRECATED static MK_UNUSED OT_ProcRet atlmkkernel_MkErrorC_Log ( MkErrorC_ARGS )
static

Definition at line 386 of file MkErrorC_atl.c.

#define OT_ERROR_LNG_RETURN

◆ atlmkkernel_MkErrorC_Println()

static OT_ProcRet atlmkkernel_MkErrorC_Println ( MkErrorC_ARGS )
static

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 …

Definition at line 389 of file MkErrorC_atl.c.

389 {
392 MK_STRN msg = "";
394 MK_STRN callfunc = NULL;
396 MK_I32 callline = -1;
399 if (callline == -1 ) {callline = OT_GET_CALL_LINE;}
400 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
401 MkErrorPrintln (hdl, msg, callfunc, callline);
403 goto end;
404 error:
406 end:
409}
#define Println_doc
#define MkErrorPrintln(...)

◆ atlmkkernel_MkErrorC_Reset()

static OT_ProcRet atlmkkernel_MkErrorC_Reset ( MkErrorC_ARGS )
static

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

Definition at line 412 of file MkErrorC_atl.c.

412 {
415 MK_STRN callfunc = NULL;
417 MK_I32 callline = -1;
419 MK_BOOL force = false;
422 if (callline == -1 ) {callline = OT_GET_CALL_LINE;}
423 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
424 MkErrorC_Check(hdl,MkErrorReset (hdl, callfunc, callline, force));
426 goto end;
427 error:
429 end:
432}
#define OT_CHECK_bool(val)
#define MkErrorC_Check(mng, PROC)
#define Reset_doc
#define MkErrorReset(...)
bool MK_BOOL
real bool data-type

◆ atlmkkernel_MkErrorC_Stack()

static OT_ProcRet atlmkkernel_MkErrorC_Stack ( MkErrorC_ARGS )
static

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

Definition at line 435 of file MkErrorC_atl.c.

435 {
438 MK_STRN callfunc = NULL;
440 MK_STRN callfile = NULL;
442 MK_I32 callline = -1;
445 if (callline == -1 ) {callline = OT_GET_CALL_LINE;}
446 if (MkSysStringIsNULL(callfile)) {callfile = OT_GET_CALL_FILE;}
447 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
448 OT_retObj_SET(OT_NEW_Mk_enum_OBJ(ErrorE,MkErrorStack (hdl, callfunc, callfile, callline)));
449 goto end;
450 error:
452 end:
455}
#define OT_GET_CALL_FILE
#define OT_NEW_Mk_enum_OBJ(typ, val)
#define OT_retObj_SET(val)
#define Stack_doc
#define OT_SETUP_hdl__null_allow
#define MkErrorStack(...)

◆ atlmkkernel_MkErrorC_StackFormat()

static OT_ProcRet atlmkkernel_MkErrorC_StackFormat ( MkErrorC_ARGS )
static

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

Definition at line 458 of file MkErrorC_atl.c.

458 {
461 MK_STRN callfunc = NULL;
463 MK_STRN callfile = NULL;
465 MK_I32 callline = -1;
468 if (callline == -1 ) {callline = OT_GET_CALL_LINE;}
469 if (MkSysStringIsNULL(callfile)) {callfile = OT_GET_CALL_FILE;}
470 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
471 MkErrorStackFormat (hdl, callfunc, callfile, callline);
473 goto end;
474 error:
476 end:
479}
#define StackFormat_doc
#define MkErrorStackFormat(...)

◆ atlmkkernel_MkErrorC_ToString()

MK_DEPRECATED static MK_UNUSED OT_ProcRet atlmkkernel_MkErrorC_ToString ( MkErrorC_ARGS )
static

Definition at line 483 of file MkErrorC_atl.c.