theKernel 10.0
Loading...
Searching...
No Matches
MkErrorC_cc.hh
Go to the documentation of this file.
1
9/* LABEL-INIT */
10
11#pragma once
12
13namespace ccmkkernel {
14
17 typedef struct {
20 } MkErrorC_A;
21
24 class MkErrorC : public MkObjectC
25 {
26 friend class MkKernel;
27
28/* LABEL-START */
29
32
33 public:
34 static thread_local MkErrorC MK_NULL_REF;
35
36 private:
37
38 static MkErrorC* MkErrorC_GetSelf (MK_ERR hdl) {
39 return (hdl != NULL ? static_cast<MkErrorC*>((*MkErrorC_X2obj(hdl)).self) : &MK_NULL_REF);
40 }
41
42 #ifdef MkErrorC_selfCreate_overload
43 static MK_PTR MkErrorC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env);
44 #else
45 static MK_PTR MkErrorC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env) {
46 return new MkErrorC(obj);
47 }
48 #endif
49
50 static void MkErrorC_selfDelete (MK_RT_ARGS MK_PTR self, MK_PTR env) {
51 delete static_cast<MkErrorC*>(self);
52 }
53
54 static void MkErrorC_selfUnlink (MK_RT_ARGS MK_PTR self, MK_PTR env) {
55 MkErrorC* selfO = static_cast<MkErrorC*>(self);
56 selfO->atomUnlink();
57 }
58
59 void MkErrorC_Init (MK_ERR hdl) { atomInit(MkErrorC_X2obj(hdl)); };
60
61
62 static MkErrorC* MkErrorC_ObjCreate (MK_RT_ARGS MK_ERR hdl) {
63 return static_cast<MkErrorC*>(MkObjectC::atomObjCreate(MK_RT_CALL MkErrorC_X2obj(hdl)));
64 }
65
66#ifndef META_IS_MkObjectC
67 MkErrorC (MK_OBJ obj) : MkObjectC(obj) {};
68#endif
69
70 public:
71
72#ifndef META_IS_MkObjectC
74#endif
75
80
82 MK_ERR getERR() const {
83 MK_ERR ret = reinterpret_cast<MK_ERR>(hdl);
84 if (unlikely(ret == NULL)) InstHdlIsNullError();
85 return ret;
86 };
87
90 return reinterpret_cast<MK_ERR>(hdl);
91 };
92
94 MK_ERRN getERRN() const {
95 MK_ERRN ret = reinterpret_cast<MK_ERRN>(hdl);
96 if (unlikely(ret == NULL)) InstHdlIsNullError();
97 return ret;
98 };
99
102 return reinterpret_cast<MK_ERRN>(hdl);
103 };
104
106 static MK_ERR getERR(MkErrorC* clsHdl) {
107 MK_ERR ret = clsHdl ? reinterpret_cast<MK_ERR>(clsHdl->hdl) : NULL;
108 if (unlikely(ret == NULL)) ClassHdlIsNullError(MkErrorC);
109 return ret;
110 };
111
114 return clsHdl ? reinterpret_cast<MK_ERR>(clsHdl->hdl) : NULL;
115 };
116
118 static MK_ERRN getERRN(const MkErrorC* clsHdl) {
119 MK_ERRN ret = clsHdl ? reinterpret_cast<MK_ERRN>(clsHdl->hdl) : NULL;
120 if (unlikely(ret == NULL)) ClassHdlIsNullError(MkErrorC);
121 return ret;
122 };
123
125 static MK_ERRN getERRN__null_allow(const MkErrorC* clsHdl) {
126 return clsHdl ? reinterpret_cast<MK_ERRN>(clsHdl->hdl) : NULL;
127 };
128
130 static MK_ERR getERR(const MkErrorC& clsHdl) {
131 return clsHdl.getERR();
132 };
133
135 static MK_ERR getERR__null_allow(const MkErrorC& clsHdl) {
136 return clsHdl.getERR__null_allow();
137 };
138
140 static MK_ERRN getERRN(const MkErrorC& clsHdl) {
141 return clsHdl.getERRN();
142 };
143
145 static MK_ERRN getERRN__null_allow(const MkErrorC& clsHdl) {
146 return clsHdl.getERRN__null_allow();
147 };
148
150 bool Check() const {
151 return (hdl && MkErrCheck(hdl));
152 };
153
154/* LABEL-END */
155
156 public:
157
158 MkErrorC(const MkErrorC& e) {
159 MkErrorC_Init(MkErrorDup_RT(MK_RT_CALL_NULL MkErrN(e.hdl)));
160 }
162 MkErrorC_Init(MkErrorDup_RT(MK_RT_CALL_NULL MkErrN(ex.hdl)));
163 }
164
165 public:
166
167 static inline void Check(MK_MNGN mng, enum MkErrorE err) {
168 if (MkErrorCheckI(err)) MkExceptionC::Raise(mng);
169 }
170
171 static inline void Check(enum MkErrorE err) {
173 }
174
175 public:
176
177 static inline MkErrorC* FORMAT (MK_OBJ const fmtobj);
178
179 public:
180
181 static bool IsEXIT_DEFAULT () {return MkErrorIsEXIT (&MkERROR_NULL); }
182 static bool IsSOCKET_DEFAULT () {return MkErrorIsSOCKET (&MkERROR_NULL); }
183
184 //if (errVal > MK_CONTINUE) MkErrorC::Check(error_hdl, errVal);
185
186 // BEGIN-MkErrorC - created by 'cc_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
187
191
192 public:
193
194 // doc-key: MkErrorC,MkErrorC-Class-Export,sc_,public
195
197 static MkErrorC* HandleResolve (MK_HDL netHdl);
198
199 // doc-key: MkErrorC,MkErrorC-Class-Export,om_,public
200
201 // skip class-overload: MK_HDL HandleGet ()
202
204 // MkErrorC_Class_CC_API
205
209
210 public:
211
212 // doc-key: MkErrorC,MkErrorC-Class-Introspection,oc_,public
213
215 MkErrorC* Next ();
216
218 MkErrorC* Prev ();
219
220 // doc-key: MkErrorC,MkErrorC-Class-Introspection,sc_,public
221
223 static MkErrorC* Instances ();
224
226 // MkErrorC_Class_CC_API
227
231
232 public:
233
234 // doc-key: MkErrorC,MkErrorC-Class-Misc,sc_,public
235
237 static MkErrorC* GetNull ();
238
240 // MkErrorC_Class_CC_API
241
245
246 public:
247
248 // doc-key: MkErrorC,MkErrorC-Get,om_,public
249
251 MkErrorE GetCode () const;
252
254 MK_I32 GetNum () const;
255
257 MK_SIZE GetSize () const;
258
260 MK_STRN GetText () const;
261
263 // MkErrorC_Get_CC_API
264
268
269 public:
270
271 // doc-key: MkErrorC,MkErrorC-Misc,oc_,public
272
274 MkErrorC* Catch (std::exception* exception = NULL, MK_STRN callfunc = __builtin_FUNCTION());
275
277 MkErrorC* Catch (const std::exception& exception, MK_STRN callfunc = __builtin_FUNCTION());
278
279 // doc-key: MkErrorC,MkErrorC-Misc,om_,public
280
282 void Cleanup (MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 callline = __builtin_LINE());
283
284 // skip class-overload: void Log (const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const
285
286 // skip class-overload: void Log (const MkObjectC& fmtobj, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const
287
289 void Println (MK_STRN msg = "", MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 callline = __builtin_LINE());
290
292 void Reset (MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 callline = __builtin_LINE(), MK_BOOL force = false);
293
295 MkErrorE Stack (MK_STRN callfunc = __builtin_FUNCTION(), MK_STRN callfile = __builtin_FILE(), MK_I32 callline = __builtin_LINE());
296
298 void StackFormat (MK_STRN callfunc = __builtin_FUNCTION(), MK_STRN callfile = __builtin_FILE(), MK_I32 callline = __builtin_LINE());
299
300 // skip class-overload: MK_STRN ToString () const
301
303 // MkErrorC_Misc_CC_API
304
308
309 public:
310
311 // doc-key: MkErrorC,MkErrorC-Raise,oc_,public
312
314 MkErrorC* NoRaise ();
315
316 // doc-key: MkErrorC,MkErrorC-Raise,om_,public
317
319 void AppendC (MK_STRN message);
320
322 void AppendC (const std::string& message);
323
325 void AppendV (MK_FST printfmt, ... ) __attribute__ ((format (printf, 2, 3)));
326
328 void AppendVL (MK_FST printfmt, va_list var_list);
329
331 void Raise () const;
332
334 void SetC (MK_STRN message, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 errnum = -1);
335
337 void SetC (const std::string& message, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 errnum = -1);
338
340 void SetV (MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt, ... ) __attribute__ ((format (printf, 4, 5)));
341
343 void SetV (const std::string& callfunc, MK_I32 errnum, MK_FST printfmt, ... ) __attribute__ ((format (printf, 4, 5)));
344
346 void SetVL (MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt, va_list var_list);
347
349 void SetVL (const std::string& callfunc, MK_I32 errnum, MK_FST printfmt, va_list var_list);
350
351 // doc-key: MkErrorC,MkErrorC-Raise,sm_,public
352
354 static void PanicC (const MkObjectC* fmtobj, MK_STRN callfunc, MK_I32 errnum, MK_STRN message);
355
357 static void PanicC (const MkObjectC& fmtobj, MK_STRN callfunc, MK_I32 errnum, MK_STRN message);
358
360 static void PanicC (const MkObjectC* fmtobj, const std::string& callfunc, MK_I32 errnum, const std::string& message);
361
363 static void PanicC (const MkObjectC& fmtobj, const std::string& callfunc, MK_I32 errnum, const std::string& message);
364
366 static void PanicDEFAULT (const MkObjectC* fmtobj = NULL, MK_STRN callfunc = __builtin_FUNCTION());
367
369 static void PanicDEFAULT (const MkObjectC& fmtobj, MK_STRN callfunc = __builtin_FUNCTION());
370
372 static void PanicV (const MkObjectC* fmtobj, MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt, ... ) __attribute__ ((format (printf, 4, 5)));
373
375 static void PanicV (const MkObjectC& fmtobj, MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt, ... ) __attribute__ ((format (printf, 4, 5)));
376
378 static void PanicV (const MkObjectC* fmtobj, const std::string& callfunc, MK_I32 errnum, MK_FST printfmt, ... ) __attribute__ ((format (printf, 4, 5)));
379
381 static void PanicV (const MkObjectC& fmtobj, const std::string& callfunc, MK_I32 errnum, MK_FST printfmt, ... ) __attribute__ ((format (printf, 4, 5)));
382
384 static void PanicVL (const MkObjectC* fmtobj, MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt, va_list var_list);
385
387 static void PanicVL (const MkObjectC& fmtobj, MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt, va_list var_list);
388
390 static void PanicVL (const MkObjectC* fmtobj, const std::string& callfunc, MK_I32 errnum, MK_FST printfmt, va_list var_list);
391
393 static void PanicVL (const MkObjectC& fmtobj, const std::string& callfunc, MK_I32 errnum, MK_FST printfmt, va_list var_list);
394
396 // MkErrorC_Raise_CC_API
397
401
402 public:
403
404 // doc-key: MkErrorC,MkErrorC-Signal,om_,public
405
407 MK_BOOL IsABORT () const;
408
410 MK_BOOL IsEXIT ();
411
413 MK_BOOL IsSOCKET () const;
414
416 MK_BOOL IsTIMEOUT () const;
417
419 void SetABORT (MK_STRN detail = "UNKNOWN", MK_STRN callfunc = __builtin_FUNCTION());
420
422 void SetCONTINUE ();
423
425 void SetCode (MkErrorE code);
426
428 void SetEXIT (MK_STRN callfunc = __builtin_FUNCTION());
429
431 void SetSOCKET (MK_STRN detail = "UNKNOWN", MK_STRN callfunc = __builtin_FUNCTION());
432
434 // MkErrorC_Signal_CC_API
435
439
440 public:
441
442 // doc-key: MkErrorC,MkErrorC-System,sc_,public
443
445 static MkErrorC* DEFAULT ();
446
448 static MkErrorC* FORMAT (const MkObjectC* fmtobj = NULL);
449
451 static MkErrorC* FORMAT (const MkObjectC& fmtobj);
452
454 static MkErrorC* IGNORE ();
455
457 static MkErrorC* PRINT ();
458
460 // MkErrorC_System_CC_API
461
465
466 public:
467
468 // doc-key: MkErrorC,MkErrorC-TOR,oCx,public
469
471 MkErrorC* Dup () const;
472
473 // doc-key: MkErrorC,MkErrorC-TOR,om_,public
474
476 void Copy (const MkErrorC* srce);
477
479 void Copy (const MkErrorC& srce);
480
482 // MkErrorC_TOR_CC_API
483
484 // END-MkErrorC - created by 'cc_MqS.tcl -i NHI1_HOME/theKernel/c/gen/c_mkkernel.meta' - DO NOT change
485
487
488 };
489} // namespace ccmkkernel
490
491#define MkErrorC_Check(errObj, errVal) \
492 if (errVal > MK_CONTINUE) MkErrorC::Check(errObj, errVal)
#define MkErrorCheckI(err)
#define InstHdlIsNullError()
#define ClassHdlIsNullError(cls)
The data-type to store and handle the error-condition … → C-API: libmkkernel::MkErrorS
MkExceptionC - The default-exception of the Programming-Language-Micro-Kernel (PLMK) …
MkKernel PACKAGE - The package is the toplevel structure of the Programming-Language-Micro-Kernel (PL...
object header … → C-API: libmkkernel::MkObjectS
static bool IsEXIT_DEFAULT()
MK_ERR getERR__null_allow() const
return the LibMsgqueObject from current MkErrorC instance
MK_ERRN getERRN() const
(const) return the LibMsgqueObject from current MkErrorC instance
static MK_ERR getERR(const MkErrorC &clsHdl)
return LibMsgqueObject from current MkErrorC reference
MkErrorC(const MkExceptionC &ex)
static MkErrorC * FORMAT(MK_OBJ const fmtobj)
static void Check(MK_MNGN mng, enum MkErrorE err)
static MK_ERR getERR(MkErrorC *clsHdl)
return LibMsgqueObject from current MkErrorC pointer
static thread_local MkErrorC MK_NULL_REF
static MkErrorC * MkErrorC_ObjNew(MK_RT_ARGS MK_ERR hdl)
return MkErrorC from LibMsgqueObject
MK_ERR getERR() const
return the LibMsgqueObject from current MkErrorC instance
static MK_ERRN getERRN(const MkErrorC &clsHdl)
(const) return LibMsgqueObject from current MkErrorC reference
static MK_ERRN getERRN__null_allow(const MkErrorC *clsHdl)
(const) return LibMsgqueObject from current MkErrorC pointer
static MK_ERR getERR__null_allow(const MkErrorC &clsHdl)
return LibMsgqueObject from current MkErrorC reference
static bool IsSOCKET_DEFAULT()
bool Check() const
check if pointer is still valid
MK_ERRN getERRN__null_allow() const
(const) return the LibMsgqueObject from current MkErrorC instance
static MK_ERRN getERRN__null_allow(const MkErrorC &clsHdl)
(const) return LibMsgqueObject from current MkErrorC reference
static MK_ERR getERR__null_allow(MkErrorC *clsHdl)
return LibMsgqueObject from current MkErrorC pointer
static void Check(enum MkErrorE err)
MkErrorC(const MkErrorC &e)
static MK_ERRN getERRN(const MkErrorC *clsHdl)
(const) return LibMsgqueObject from current MkErrorC pointer
static MkErrorC * HandleResolve(MK_HDL netHdl)
C++: [static] MkErrorC* MkErrorC::HandleResolve(MK_HDL netHdl) → C-API Handle-Resolve-Slot - ret...
static MkErrorC * Instances()
C++: [static] MkErrorC* MkErrorC::Instances() → C-API get head-instance from linked-list of MkEr...
MkErrorC * Next()
C++: MkErrorC* err.Next() → C-API get next instance from linked-list of MkErrorS type
static MkErrorC * GetNull()
C++: [static] MkErrorC* MkErrorC::GetNull() → C-API Null-Slot - return a MkErrorC typed NULL ins...
MkErrorC * Prev()
C++: MkErrorC* err.Prev() → C-API get previous instance from linked-list of MkErrorS type
struct MkErrorS * MK_ERR
class-shortcut for struct MkErrorS *, all shortcut using the XX_YYY syntax (only for public API) …
#define MkErrorC_X2obj(x)
static MK_ERRN MkErrN(MK_MNGN mng)
(const) cast a unknown-object into an MkErrorS pointer or NULL if not possible
static bool MkErrCheck(MK_MNGN mng)
check MkErrorS -> libmkkernel::MkObjectS::signature …
MK_STRN GetText() const
C++: MK_STRN err.GetText() → C-API get the MkErrorS::text …
MK_I32 GetNum() const
C++: MK_I32 err.GetNum() → C-API get the MkErrorS::num. The number can be used as exit-code …
MkErrorE GetCode() const
C++: MkErrorE err.GetCode() → C-API get the value of MkErrorS::code …
MK_SIZE GetSize() const
C++: MK_SIZE err.GetSize() → C-API get the error-message-size from the exception-object …
void Cleanup(MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 callline=__builtin_LINE())
C++: err.Cleanup(MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 callline = __builtin_LINE()) → C-A...
MkErrorC * Catch(std::exception *exception=NULL, MK_STRN callfunc=__builtin_FUNCTION())
C++: MkErrorC* err.Catch(std::exception* exception = NULL, MK_STRN callfunc = __builtin_FUNCTION()) ...
void Reset(MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 callline=__builtin_LINE(), MK_BOOL force=false)
C++: err.Reset(MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 callline = __builtin_LINE(),...
MkErrorE Stack(MK_STRN callfunc=__builtin_FUNCTION(), MK_STRN callfile=__builtin_FILE(), MK_I32 callline=__builtin_LINE())
C++: MkErrorE err.Stack(MK_STRN callfunc = __builtin_FUNCTION(), MK_STRN callfile = __builtin_FILE()...
void StackFormat(MK_STRN callfunc=__builtin_FUNCTION(), MK_STRN callfile=__builtin_FILE(), MK_I32 callline=__builtin_LINE())
C++: err.StackFormat(MK_STRN callfunc = __builtin_FUNCTION(), MK_STRN callfile = __builtin_FILE(),...
void Println(MK_STRN msg="", MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 callline=__builtin_LINE())
C++: err.Println(MK_STRN msg = "", MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 callline = __buil...
void AppendV(MK_FST printfmt,...)
C++: err.AppendV(MK_FST printfmt, ... ) → C-API append a vararg string to the MkErrorC …
void SetC(MK_STRN message, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 errnum=-1)
C++: err.SetC(MK_STRN message, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 errnum = -1) → C-API...
static void PanicVL(const MkObjectC *fmtobj, MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt, va_list var_list)
C++: [static] MkErrorC::PanicVL(const MkObjectC* fmtobj, MK_STRN callfunc, MK_I32 errnum,...
static void PanicV(const MkObjectC *fmtobj, MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt,...)
C++: [static] MkErrorC::PanicV(const MkObjectC* fmtobj, MK_STRN callfunc, MK_I32 errnum,...
void AppendVL(MK_FST printfmt, va_list var_list)
C++: err.AppendVL(MK_FST printfmt, va_list var_list) → C-API append a va_list string to the MkE...
void SetV(MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt,...)
C++: err.SetV(MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt, ... ) → C-API set the MkErrorS ...
static void PanicDEFAULT(const MkObjectC *fmtobj=NULL, MK_STRN callfunc=__builtin_FUNCTION())
C++: [static] MkErrorC::PanicDEFAULT(const MkObjectC* fmtobj = NULL, MK_STRN callfunc = __builtin_FUN...
MkErrorC * NoRaise()
C++: MkErrorC* err.NoRaise() → C-API ignore the next return of libmkkernel::MK_ERROR and do not...
void SetVL(MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt, va_list var_list)
C++: err.SetVL(MK_STRN callfunc, MK_I32 errnum, MK_FST printfmt, va_list var_list) → C-API 'set...
static void PanicC(const MkObjectC *fmtobj, MK_STRN callfunc, MK_I32 errnum, MK_STRN message)
C++: [static] MkErrorC::PanicC(const MkObjectC* fmtobj, MK_STRN callfunc, MK_I32 errnum,...
void AppendC(MK_STRN message)
C++: err.AppendC(MK_STRN message) → C-API append the message to the MkErrorS::text …
void Raise() const
C++: err.Raise() → C-API convert an ccmkkernel error into an programming-language-error and rai...
void SetCode(MkErrorE code)
C++: err.SetCode(MkErrorE code) → C-API set the MkErrorS::code value …
void SetSOCKET(MK_STRN detail="UNKNOWN", MK_STRN callfunc=__builtin_FUNCTION())
C++: err.SetSOCKET(MK_STRN detail = "UNKNOWN", MK_STRN callfunc = __builtin_FUNCTION()) → C-API ...
void SetEXIT(MK_STRN callfunc=__builtin_FUNCTION())
C++: err.SetEXIT(MK_STRN callfunc = __builtin_FUNCTION()) → C-API finish the current callback,...
void SetCONTINUE()
C++: err.SetCONTINUE() → C-API signal end of processing in an MqMqEventIF callback …
MK_BOOL IsTIMEOUT() const
C++: MK_BOOL err.IsTIMEOUT() → C-API check on TIMEOUT error …
void SetABORT(MK_STRN detail="UNKNOWN", MK_STRN callfunc=__builtin_FUNCTION())
C++: err.SetABORT(MK_STRN detail = "UNKNOWN", MK_STRN callfunc = __builtin_FUNCTION()) → C-API ...
MK_BOOL IsEXIT()
C++: MK_BOOL err.IsEXIT() → C-API check on APPLICATION-EXIT error …
MK_BOOL IsSOCKET() const
C++: MK_BOOL err.IsSOCKET() → C-API check on SOCKET-DOWN error …
MK_BOOL IsABORT() const
C++: MK_BOOL err.IsABORT() → C-API check on ABORT signal …
bool MkErrorIsSOCKET(MK_ERRN const err)
check on SOCKET-DOWN error …
bool MkErrorIsEXIT(MK_ERR const err)
check on APPLICATION-EXIT error …
static MkErrorC * PRINT()
C++: [static] MkErrorC* MkErrorC::PRINT() → C-API ignore-system-error - print the next error int...
static MkErrorC * IGNORE()
C++: [static] MkErrorC* MkErrorC::IGNORE() → C-API ignore-system-error - ignore the next error …
static MkErrorC * DEFAULT()
C++: [static] MkErrorC* MkErrorC::DEFAULT() → C-API default-system-error - default-error …
#define MkERROR_NULL
#define MK_ERROR_DEFAULT_NULL
MkErrorC * Dup() const
C++: [constructor] MkErrorC* srce.Dup() → C-API Dup-Constructor - create a new MkErrorC instance...
void Copy(const MkErrorC *srce)
C++: dest.Copy(const MkErrorC* srce) → C-API Copy-Constructor - sync an existing MkErrorC insta...
MK_ERR MkErrorDup_RT(MK_RT mkrt, MK_ERRN const srce)
Dup-Constructor - create a new MkErrorC instance as copy from an existing MkErrorC instance …
static void Raise(MK_MNGN const expobj, MK_STRN const callfunc=__builtin_FUNCTION(), MK_I32 const callline=__builtin_LINE())
convert an MkErrorC into a Target-Programming-Language (TPL) exception … → C-API: libmkkernel::MkE...
MK_ERR hdl
link to the MkErrorC object
#define unlikely(x)
MkErrorE
collection for the different error-codes …
MK_STRB const * MK_FST
const format string pointer data-type
bool MK_BOOL
real bool data-type
int32_t MK_HDL
4 byte int handle data-type
int32_t MK_NUM
array size data-type ('num' items in array …
signed int MK_I32
4 byte integer data-type
MK_PTRB * MK_PTR
generic pointer data-type
const MK_PTRB * MK_MNGN
const - a managed object pointer, datatype will be checked at runtime
const MK_STRB * MK_STRN
constant string pointer data-type
static MK_PTR atomObjCreate(MK_RT_ARGS MK_OBJ obj)
void atomInit(MK_OBJ obj)
static MK_PTR atomObjNew(MK_RT_ARGS MK_OBJ obj)
struct MkObjectS * MK_OBJ
class-shortcut for struct MkObjectS *, all shortcut using the XX_YYY syntax (only for public API) …
#define MK_RT_CALL_NULL
#define MK_RT_CALL
#define MK_RT_ARGS
namespace for the CcMkKernel "C++"-API
The data-type to store and handle the error-condition … → C-API: libmkkernel::MkErrorS
The data-type to store and handle the error-condition …