theConfig 10.0 NHI1 - theKernel - theLink - theConfig - theSq3Lite - theCompiler - theBrain - theGuard
c - tcl - py - rb - jv - cc
Loading...
Searching...
No Matches
LcConfig_Error_C_API

LcConfig PACKAGE - error handling in liblcconfigMore...

+ Collaboration diagram for LcConfig_Error_C_API:

Macros

#define LcErrorCheckI(ret)
 check if ret signal an error
 
#define LcErrorE_Check(lc_hdl, PROC)
 check on a liblcconfig error and convert into a liblcconfig error …
 

Typedefs

typedef enum LcErrorE LcErrorE
 define the return-code of a method-call
 
typedef enum LcErrorTypeE LcErrorTypeE
 define the error-source of a LcConfigC
 

Functions

LC_EXTERN enum MkErrorE LcConfigErrorToMQ (MK_OBJN const obj, MK_STRN const func, MK_STRN const file, MK_I32 const line)
 if a libconfig funtion return a LcErrorE use this function to convert the libconfig-error into the libmkkernel-error
 

Detailed Description

LcConfig PACKAGE - error handling in liblcconfig

The error signals the end of an operation with an undesirable result or state.

Macro Definition Documentation

◆ LcErrorCheckI

#define LcErrorCheckI ( ret)
Value:
((ret) == CONFIG_FALSE)
#define CONFIG_FALSE

check if ret signal an error

Parameters
[in]retinput for liblcconfig error-check
Returns
true if ret is an error otherwise false

Definition at line 388 of file LibLcConfig_lc.h.

◆ LcErrorE_Check

#define LcErrorE_Check ( lc_hdl,
PROC )
Value:
if (unlikely(LcErrorCheckI(PROC))) { \
LcConfigErrorToMQ(MkOBJ(lc_hdl), __func__,__FILE__,__LINE__); \
goto error; \
}
#define LcErrorCheckI(ret)
check if ret signal an error …
#define unlikely(x)
#define MkOBJ(x)

check on a liblcconfig error and convert into a liblcconfig error …

Parameters
[in]lc_hdlthe instance to work on, LcConfigC or LcSettingC
[in]PROCthe function to return the error, only eval once.
Returns
on error jump to label error:

Definition at line 396 of file LibLcConfig_lc.h.

396#define LcErrorE_Check(lc_hdl,PROC) \
397 if (unlikely(LcErrorCheckI(PROC))) { \
398 LcConfigErrorToMQ(MkOBJ(lc_hdl), __func__,__FILE__,__LINE__); \
399 goto error; \
400 }

Typedef Documentation

◆ LcErrorE

typedef enum LcErrorE LcErrorE

define the return-code of a method-call

Definition at line 374 of file LibLcConfig_lc.h.

◆ LcErrorTypeE

typedef enum LcErrorTypeE LcErrorTypeE

define the error-source of a LcConfigC

See also
ConfigErrorType ErrorTypeE_ToString

Definition at line 381 of file LibLcConfig_lc.h.

Function Documentation

◆ LcConfigErrorToMQ()

LC_EXTERN enum MkErrorE LcConfigErrorToMQ ( MK_OBJN const obj,
MK_STRN const func,
MK_STRN const file,
MK_I32 const line )

if a libconfig funtion return a LcErrorE use this function to convert the libconfig-error into the libmkkernel-error