theKernel 10.0
Loading...
Searching...
No Matches
MkErrorC_Misc_TCL_API

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

+ Collaboration diagram for MkErrorC_Misc_TCL_API:

Functions

static OT_ProcRet tclmkkernel_MkErrorC_Catch (MkErrorC_ARGS)
  Tcl: MkErrorC [$err Catch ?exception:errorCode="MK_NULL"? ?callfunc:string="MK_NULL"?] C-API
convert a programming-language-error into an tclmkkernel error …
 
static OT_ProcRet tclmkkernel_MkErrorC_Cleanup (MkErrorC_ARGS)
  Tcl: $err Cleanup ?callfunc:string="MK_NULL"? ?callline:int32=-1? C-API
cleanup and print unwanted active error …
 
MK_DEPRECATED static MK_UNUSED OT_ProcRet tclmkkernel_MkErrorC_Log (MkErrorC_ARGS)
 
static OT_ProcRet tclmkkernel_MkErrorC_Println (MkErrorC_ARGS)
  Tcl: $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 tclmkkernel_MkErrorC_Reset (MkErrorC_ARGS)
  Tcl: $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 tclmkkernel_MkErrorC_Stack (MkErrorC_ARGS)
  Tcl: 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 tclmkkernel_MkErrorC_StackFormat (MkErrorC_ARGS)
  Tcl: $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 tclmkkernel_MkErrorC_ToString (MkErrorC_ARGS)
 

Detailed Description

MkErrorC - various functions to 'work' on a MkErrorS

Function Documentation

◆ tclmkkernel_MkErrorC_Catch()

static OT_ProcRet tclmkkernel_MkErrorC_Catch ( MkErrorC_ARGS )
static

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

Definition at line 363 of file MkErrorC_tcl.c.

363 {
366 MK_EXP exception = NULL;
368 MK_STRN callfunc = NULL;
371 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
372 MK_ERR retVal = MkErrorCatchTmpl (hdl, exception, callfunc);
373 OT_retObj_SET_ERR(retVal);
374 goto end;
375 error:
377 end:
380}
#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 …

◆ tclmkkernel_MkErrorC_Cleanup()

static OT_ProcRet tclmkkernel_MkErrorC_Cleanup ( MkErrorC_ARGS )
static

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

Definition at line 385 of file MkErrorC_tcl.c.

385 {
388 MK_STRN callfunc = NULL;
390 MK_I32 callline = -1;
393 if (callline == -1 ) {callline = OT_GET_CALL_LINE;}
394 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
395 MkErrorCleanup (hdl, callfunc, callline);
397 goto end;
398 error:
400 end:
403}
#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

◆ tclmkkernel_MkErrorC_Log()

MK_DEPRECATED static MK_UNUSED OT_ProcRet tclmkkernel_MkErrorC_Log ( MkErrorC_ARGS )
static

Definition at line 407 of file MkErrorC_tcl.c.

#define OT_ERROR_LNG_RETURN

◆ tclmkkernel_MkErrorC_Println()

static OT_ProcRet tclmkkernel_MkErrorC_Println ( MkErrorC_ARGS )
static

Tcl: $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 …

Definition at line 410 of file MkErrorC_tcl.c.

410 {
413 MK_STRN msg = "";
415 MK_STRN callfunc = NULL;
417 MK_I32 callline = -1;
420 if (callline == -1 ) {callline = OT_GET_CALL_LINE;}
421 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
422 MkErrorPrintln (hdl, msg, callfunc, callline);
424 goto end;
425 error:
427 end:
430}
#define Println_doc
#define MkErrorPrintln(...)

◆ tclmkkernel_MkErrorC_Reset()

static OT_ProcRet tclmkkernel_MkErrorC_Reset ( MkErrorC_ARGS )
static

Tcl: $err Reset ?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 433 of file MkErrorC_tcl.c.

433 {
436 MK_STRN callfunc = NULL;
438 MK_I32 callline = -1;
440 MK_BOOL force = false;
443 if (callline == -1 ) {callline = OT_GET_CALL_LINE;}
444 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
445 MkErrorC_Check(hdl,MkErrorReset (hdl, callfunc, callline, force));
447 goto end;
448 error:
450 end:
453}
#define OT_CHECK_bool(val)
#define MkErrorC_Check(mng, PROC)
#define Reset_doc
#define MkErrorReset(...)
bool MK_BOOL
real bool data-type

◆ tclmkkernel_MkErrorC_Stack()

static OT_ProcRet tclmkkernel_MkErrorC_Stack ( MkErrorC_ARGS )
static

Tcl: 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

Definition at line 456 of file MkErrorC_tcl.c.

456 {
459 MK_STRN callfunc = NULL;
461 MK_STRN callfile = NULL;
463 MK_I32 callline = -1;
466 if (callline == -1 ) {callline = OT_GET_CALL_LINE;}
467 if (MkSysStringIsNULL(callfile)) {callfile = OT_GET_CALL_FILE;}
468 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
469 OT_retObj_SET(OT_NEW_Mk_enum_OBJ(ErrorE,MkErrorStack (hdl, callfunc, callfile, callline)));
470 goto end;
471 error:
473 end:
476}
#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(...)

◆ tclmkkernel_MkErrorC_StackFormat()

static OT_ProcRet tclmkkernel_MkErrorC_StackFormat ( MkErrorC_ARGS )
static

Tcl: $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

Definition at line 479 of file MkErrorC_tcl.c.

479 {
482 MK_STRN callfunc = NULL;
484 MK_STRN callfile = NULL;
486 MK_I32 callline = -1;
489 if (callline == -1 ) {callline = OT_GET_CALL_LINE;}
490 if (MkSysStringIsNULL(callfile)) {callfile = OT_GET_CALL_FILE;}
491 if (MkSysStringIsNULL(callfunc)) {callfunc = OT_GET_CALL_PROC;}
492 MkErrorStackFormat (hdl, callfunc, callfile, callline);
494 goto end;
495 error:
497 end:
500}
#define StackFormat_doc
#define MkErrorStackFormat(...)

◆ tclmkkernel_MkErrorC_ToString()

MK_DEPRECATED static MK_UNUSED OT_ProcRet tclmkkernel_MkErrorC_ToString ( MkErrorC_ARGS )
static

Definition at line 504 of file MkErrorC_tcl.c.