theKernel 10.0
Loading...
Searching...
No Matches
MkObjectC_Dbg_CS_API

MkObjectC - log a debugging-message to the MkLogFileC (default: stderr) … More...

+ Collaboration diagram for MkObjectC_Dbg_CS_API:

Functions

void csmkkernel.MkObjectC.DbgDump (string message="var", [CallerMemberName]string callfunc=null)
  C#: obj.DbgDump(string message = "var", [CallerMemberName]string callfunc = null) C-API
debug: Dump a instance to stderr with LNG and MQ internal data…
 
void csmkkernel.MkObjectC.DbgL (string message, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
  C#: fmtobj.DbgL(string message, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
debug: write a instance-marker to the MkLogFileC (default: stderr) using the fmtobj as prefix …
 
void csmkkernel.MkObjectC.DbgLogC ([CallerMemberName]string callfunc=null)
  C#: obj.DbgLogC([CallerMemberName]string callfunc = null) C-API
debug: write a short-obj-summary to MkLogFileC (default: stderr) …
 
void csmkkernel.MkObjectC.DbgO ([CallerMemberName]string callfunc=null)
  C#: obj.DbgO([CallerMemberName]string callfunc = null) C-API
debug: write the object-details to MkLogFileC (default: stderr) …
 
void csmkkernel.MkObjectC.DbgSTACK (int skip=0, int num=-1, [CallerMemberName]string callfunc=null)
  C#: fmtobj.DbgSTACK(int skip = 0, int num = -1, [CallerMemberName]string callfunc = null) C-API
debug: write the stack-trace to MkLogFileC (default: stderr) …
 
static void csmkkernel.MkObjectC.DbgM (string message, int debug=0, [CallerMemberName]string callfunc=null, int lvl=0)
  C#: [static] MkObjectC.DbgM(string message, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
debug: write a static-marker to the MkLogFileC (default: stderr) …
 

Detailed Description

MkObjectC - log a debugging-message to the MkLogFileC (default: stderr) …

This functions are "helpers" to support the programmer.

Function Documentation

◆ DbgDump()

void csmkkernel.MkObjectC.DbgDump ( string message = "var",
[CallerMemberName] string callfunc = null )
inline

C#: obj.DbgDump(string message = "var", [CallerMemberName]string callfunc = null) C-API
debug: Dump a instance to stderr with LNG and MQ internal data…

Definition at line 441 of file MkObjectC.cs.

441 {
442 IntPtr message_cstr = Marshal.StringToHGlobalAnsi(message);
443 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
444 MkErrorE errVal = MkDbgDumpTmpl(mkrt, hdl, message_cstr, callfunc_cstr);
445 Marshal.FreeHGlobal(message_cstr);
446 Marshal.FreeHGlobal(callfunc_cstr);
447 MkErrorC.Check(hdl, errVal);
448 }
MkErrorE
collection for the different error-codes …

◆ DbgL()

void csmkkernel.MkObjectC.DbgL ( string message,
int debug = 0,
[CallerMemberName] string callfunc = null,
int lvl = 0 )
inline

C#: fmtobj.DbgL(string message, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
debug: write a instance-marker to the MkLogFileC (default: stderr) using the fmtobj as prefix …

Definition at line 451 of file MkObjectC.cs.

451 {
452 if (debug > (int)(MkRuntimeC.DebugGet())) {return;}
453 IntPtr message_cstr = Marshal.StringToHGlobalAnsi(message);
454 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
455 Mk.MkDbgL(mkrt, hdl_null_allow, message_cstr, debug, callfunc_cstr, lvl);
456 Marshal.FreeHGlobal(message_cstr);
457 Marshal.FreeHGlobal(callfunc_cstr);
458 }
csmkkernel.MkKernel Mk

◆ DbgLogC()

void csmkkernel.MkObjectC.DbgLogC ( [CallerMemberName] string callfunc = null)
inline

C#: obj.DbgLogC([CallerMemberName]string callfunc = null) C-API
debug: write a short-obj-summary to MkLogFileC (default: stderr) …

Definition at line 461 of file MkObjectC.cs.

461 {
462 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
463 Mk.MkDbgLogC(mkrt, hdl, callfunc_cstr);
464 Marshal.FreeHGlobal(callfunc_cstr);
465 }

◆ DbgM()

static void csmkkernel.MkObjectC.DbgM ( string message,
int debug = 0,
[CallerMemberName] string callfunc = null,
int lvl = 0 )
inlinestatic

C#: [static] MkObjectC.DbgM(string message, int debug = 0, [CallerMemberName]string callfunc = null, int lvl = 0) C-API
debug: write a static-marker to the MkLogFileC (default: stderr) …

Definition at line 484 of file MkObjectC.cs.

484 {
485 if (debug > (int)(MkRuntimeC.DebugGet())) {return;}
486 IntPtr message_cstr = Marshal.StringToHGlobalAnsi(message);
487 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
488 Mk.MkDbgM(IntPtr.Zero, message_cstr, debug, callfunc_cstr, lvl);
489 Marshal.FreeHGlobal(message_cstr);
490 Marshal.FreeHGlobal(callfunc_cstr);
491 }

◆ DbgO()

void csmkkernel.MkObjectC.DbgO ( [CallerMemberName] string callfunc = null)
inline

C#: obj.DbgO([CallerMemberName]string callfunc = null) C-API
debug: write the object-details to MkLogFileC (default: stderr) …

Definition at line 468 of file MkObjectC.cs.

468 {
469 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
470 Mk.MkDbgO(mkrt, hdl, callfunc_cstr);
471 Marshal.FreeHGlobal(callfunc_cstr);
472 }

◆ DbgSTACK()

void csmkkernel.MkObjectC.DbgSTACK ( int skip = 0,
int num = -1,
[CallerMemberName] string callfunc = null )
inline

C#: fmtobj.DbgSTACK(int skip = 0, int num = -1, [CallerMemberName]string callfunc = null) C-API
debug: write the stack-trace to MkLogFileC (default: stderr) …

Definition at line 475 of file MkObjectC.cs.

475 {
476 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
477 Mk.MkDbgSTACK(mkrt, hdl_null_allow, skip, num, callfunc_cstr);
478 Marshal.FreeHGlobal(callfunc_cstr);
479 }