MkErrorC - define the class … More...
Topics | |
MkErrorC_Class_Define_C_API | |
MkErrorC - low level definition, access and cast … | |
Typedefs | |
typedef struct MkErrorS * | MK_ERR |
class-shortcut for struct MkErrorS * , all shortcut using the XX_YYY syntax (only for public API) … | |
typedef const struct MkErrorS * | MK_ERRN |
class-shortcut for const struct MkErrorS * , all const shortcut using the XX_YYYC syntax (only for public API) … | |
typedef struct MkErrorS | MK_ERRR |
reference-shortcut for struct MkErrorS , all shortcut using the XX_YYYR syntax (only for public API) … | |
MkErrorC - Export - inline - interact with an external software | |
MK_HDL | MkErrorHandleGet_RT (MK_RT mkrt, MK_ERR const err) |
Handle-Get-Slot - returns a export-hdl to the MkErrorC useable for external storage | |
MK_ERR | MkErrorHandleResolve_RT (MK_RT mkrt, MK_HDL const netHdl) |
Handle-Resolve-Slot - return a MkErrorC from netHdl or MK_NULL if invalid… | |
#define | MkErrorHandleResolve_e(netHdl) |
wrapper for MkErrorHandleResolve with error-handline | |
MkErrorC - Misc - function - unspecified functions to perform different tasks | |
MK_ERR | MkErrorGetNull (void) |
Null-Slot - return a MkErrorC typed NULL instance … | |
MkErrorC - Introspection - inline - access to all instances created by class starting with the last one | |
MK_ERR | MkErrorInstances_RT (MK_PARSER_RT_ONLY) |
get head-instance from linked-list of MkErrorS type … | |
MK_ERR | MkErrorNext (MK_ERR const err) |
get next instance from linked-list of MkErrorS type | |
MK_ERR | MkErrorPrev (MK_ERR const err) |
get previous instance from linked-list of MkErrorS type | |
MkErrorC - Export - function | |
MK_EXTERN MK_ERR | MkErrorHandleResolveP (MK_RT mkrt, MK_HDL const netHdl) |
Non-inline replacement for MkErrorHandleResolve … | |
MK_EXTERN MK_HDL | MkErrorHandleGetP (MK_RT mkrt, MK_ERR const err) |
Non-inline replacement for MkErrorHandleGet … | |
MkErrorC - Introspection - function | |
MK_EXTERN MK_ERR | MkErrorNextP (MK_ERR const err) |
Non-inline replacement for MkErrorNext … | |
MK_EXTERN MK_ERR | MkErrorPrevP (MK_ERR const err) |
Non-inline replacement for MkErrorPrev … | |
MK_EXTERN MK_ERR | MkErrorInstancesP (MK_PARSER_RT_ONLY) |
Non-inline replacement for MkErrorInstances … | |
MkErrorC - Misc - function | |
MK_EXTERN MK_ERR | MkErrorGetNullP (void) |
Non-inline replacement for MkErrorGetNull … | |
MkErrorC - Export - overload | |
#define | MkErrorHandleResolve_NULL(...) |
#define | MkErrorHandleResolve(...) |
#define | MkErrorHandleGet_NULL(...) |
#define | MkErrorHandleGet(...) |
#define | MkErrorHandleGet_0E() |
#define | MkErrorHandleGet_1M(m) |
MkErrorC - Introspection - overload | |
#define | MkErrorNext_0E() |
#define | MkErrorNext_1M(m) |
#define | MkErrorPrev_0E() |
#define | MkErrorPrev_1M(m) |
#define | MkErrorInstances_NULL() |
#define | MkErrorInstances() |
MkErrorC - define the class …
#define MkErrorHandleGet | ( | ... | ) |
Definition at line 955 of file kernel_overload_mk.h.
#define MkErrorHandleGet_0E | ( | ) |
Definition at line 956 of file kernel_overload_mk.h.
#define MkErrorHandleGet_1M | ( | m | ) |
Definition at line 957 of file kernel_overload_mk.h.
#define MkErrorHandleGet_NULL | ( | ... | ) |
Definition at line 954 of file kernel_overload_mk.h.
#define MkErrorHandleResolve | ( | ... | ) |
Definition at line 951 of file kernel_overload_mk.h.
#define MkErrorHandleResolve_e | ( | netHdl | ) |
wrapper for MkErrorHandleResolve with error-handline
[in] | netHdl | The handle previously returned by MkObjectHandleGet. |
MK_NULL
with an error set.0
than MK_NULL
is returned and the upper-code decide how to deal with it.MK_NULL
if the netHdl is invalid or the underlying object has already been deleted.MK_NULL
is returned than an error-message is created and a jump to the label error is done.Definition at line 9369 of file LibMkKernel_mk.h.
#define MkErrorHandleResolve_NULL | ( | ... | ) |
Definition at line 950 of file kernel_overload_mk.h.
#define MkErrorInstances | ( | ) |
Definition at line 974 of file kernel_overload_mk.h.
#define MkErrorInstances_NULL | ( | ) |
Definition at line 973 of file kernel_overload_mk.h.
#define MkErrorNext_0E | ( | ) |
Definition at line 967 of file kernel_overload_mk.h.
#define MkErrorNext_1M | ( | m | ) |
Definition at line 968 of file kernel_overload_mk.h.
#define MkErrorPrev_0E | ( | ) |
Definition at line 969 of file kernel_overload_mk.h.
#define MkErrorPrev_1M | ( | m | ) |
Definition at line 970 of file kernel_overload_mk.h.
class-shortcut for struct MkErrorS *
, all shortcut using the XX_YYY
syntax (only for public API) …
Definition at line 1449 of file LibMkKernel_mk.h.
class-shortcut for const struct MkErrorS *
, all const shortcut using the XX_YYYC
syntax (only for public API) …
Definition at line 1452 of file LibMkKernel_mk.h.
reference-shortcut for struct MkErrorS
, all shortcut using the XX_YYYR
syntax (only for public API) …
Definition at line 1455 of file LibMkKernel_mk.h.
|
inline |
Null-Slot - return a MkErrorC typed NULL
instance …
Definition at line 9394 of file LibMkKernel_mk.h.
Non-inline replacement for MkErrorGetNull …
Handle-Get-Slot - returns a export-hdl to the MkErrorC useable for external storage
The export-hdl is a reference to an instance that can be stored in software and converted back into an instance using the MkErrorHandleResolve.
The export-hdl is only valid until the Programming-Language-Micro-Kernel (PLMK) ends.
example: The export-hdl is used in rpc to identify an object across the network.
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | err | the MkErrorS instance to work on - the default-error is automatically created on startup. (NULL allowed) |
Definition at line 9336 of file LibMkKernel_mk.h.
Non-inline replacement for MkErrorHandleGet …
Handle-Resolve-Slot - return a MkErrorC from netHdl or MK_NULL
if invalid…
The MkErrorHandleResolve undo the MkErrorHandleGet and is intended to export a unique identifer into external code not belonging to the Programming-Language-Micro-Kernel (PLMK).
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | netHdl | handle former exported with MkErrorHandleGet |
MK_NULL
if netHdl is invalid Definition at line 9353 of file LibMkKernel_mk.h.
Non-inline replacement for MkErrorHandleResolve …
|
inline |
get head-instance from linked-list of MkErrorS type …
The head-instance is the last instance created.
Definition at line 12435 of file LibMkKernel_mk.h.
MK_EXTERN MK_ERR MkErrorInstancesP | ( | MK_PARSER_RT_ONLY | ) |
Non-inline replacement for MkErrorInstances …
get next instance from linked-list of MkErrorS type
Definition at line 12442 of file LibMkKernel_mk.h.
Non-inline replacement for MkErrorNext …
get previous instance from linked-list of MkErrorS type
Definition at line 12449 of file LibMkKernel_mk.h.
Non-inline replacement for MkErrorPrev …