17# include "private_mk.h"
19# include "kernel_mk.h"
22#ifndef PARSE_C_HEADER_TO_META
98# define LC_C_BUILD_DLL
107#undef BEGIN_LC_C_DECLS
109#if defined(META_COMPILE_AS_CC)
110# define BEGIN_LC_C_DECLS namespace liblcconfig { using namespace libmkkernel;
111# define END_LC_C_DECLS }
112#elif defined(__cplusplus)
113# define BEGIN_LC_C_DECLS extern "C" {
114# define END_LC_C_DECLS }
116# define BEGIN_LC_C_DECLS
117# define END_LC_C_DECLS
121#ifndef PARSE_C_HEADER_TO_META
137# define LC_RT_ARGS_ONLY MK_RT_ARGS_ONLY
138# define LC_RT_ARGS MK_RT_ARGS
139# define LC_RT_CALL_ONLY MK_RT_CALL_ONLY
140# define LC_RT_CALL MK_RT_CALL
141# define LC_RT_CALL_NULL_ONLY MK_RT_CALL_NULL_ONLY
142# define LC_RT_CALL_NULL MK_RT_CALL_NULL
143# define LC_RT_REF MK_RT_REF
147# define LC_RT_PTR MK_RT_PTR
149# define LcRtSetup_O(o) MkRtSetup_O(o)
150# define LcRtSetup_X(x) MkRtSetup_X(x)
151# define LcRtSetup_XN(x) MkRtSetup_XN(x)
152# define LcRtSetup_ON(o) MkRtSetup_ON(o)
153# define LcRtSetup_NULL MkRtSetup_NULL
154# define LcRtSetup_NULL_RT MkRtSetup_NULL_RT
156# define LcERROR_R(r) MkERROR_R(r)
157# define LcERROR_RT MkERROR
158# define LcERROR_O(o) MkERROR_O(o)
159# define LcERROR_X(x) MkERROR_X(x)
160# define LcERROR_XN(x) MkERROR_XN(x)
161# define LcERROR MkERROR
163# define __LC_ATTR_DEFINED __parser__(ATTR-DEFINED=LC)
166# define LC_ATTR_INSTANCE MK_ATTR_INSTANCE __LC_ATTR_DEFINED
167# define LC_ATTR_RT_INSTANCE MK_ATTR_RT_INSTANCE __LC_ATTR_DEFINED
168# define LC_ATTR_CLASS MK_ATTR_CLASS __LC_ATTR_DEFINED
169# define LC_ATTR_RT_CLASS MK_ATTR_RT_CLASS __LC_ATTR_DEFINED
172# define LC_INSTANCE_HDL(x) MK_INSTANCE_HDL(x)
174# define LC_INSTANCE_RT_X(x) MK_INSTANCE_RT_X(x)
175# define LC_INSTANCE_RT_XN(x) MK_INSTANCE_RT_XN(x)
176# define LC_INSTANCE_RT_O(o) MK_INSTANCE_RT_O(o)
177# define LC_INSTANCE_RT_ON(o) MK_INSTANCE_RT_ON(o)
178# define LC_DESTRUCTOR_RT_X(c,x) MK_DESTRUCTOR_RT_X(c,x)
179# define LC_STATIC_RT MK_CLASS_RT
196#if defined(META_IGNORE_EXTERN)
200# if defined(DLL_EXPORT)
202# if defined(LC_C_BUILD_DLL)
203# define LC_EXTERN __declspec(dllexport)
205# define LC_EXTERN __declspec(dllimport)
209# define LC_EXTERN __attribute__ ((visibility("default")))
218#if defined(META_PRIVATE)
219# define LC_EXTERN_DATA extern
220#elif defined(META_IGNORE_EXTERN)
221# define LC_EXTERN_DATA extern
224# if defined(DLL_EXPORT)
226# if defined(LC_C_BUILD_DLL)
227# define LC_EXTERN_DATA __declspec(dllexport)
229# define LC_EXTERN_DATA __declspec(dllimport)
233# define LC_EXTERN_DATA __attribute__ ((visibility("default"))) extern
236# define LC_EXTERN_DATA extern
294#define LC_SET_T(_cls,_hook,_nat) ({ \
296 if ((_nat) == NULL) { \
299 ret = (_cls##_type)_hook (_nat); \
301 ret = (_cls##_type) MkObjCreate(_cls##_TT,_nat,NULL); \
320 __parser__(type=ME_CCC_LcConfigC:
"LcConfigC class handle":primary)
323 __parser__(type=ME_CCN_LcConfigC:"const - LcConfigC class handle":primary)
334 __parser__(type=ME_CCC_LcSettingC:"LcSettingC class handle":primary)
337 __parser__(type=ME_CCN_LcSettingC:"const - LcSettingC class handle":primary)
350#include "LcEnum_lc.h"
388#define LcErrorCheckI(ret) ((ret) == CONFIG_FALSE)
396#define LcErrorE_Check(lc_hdl,PROC) \
397 if (unlikely(LcErrorCheckI(PROC))) { \
398 LcConfigErrorToMQ(MkOBJ(lc_hdl), __func__,__FILE__,__LINE__); \
411__parser__(hide,overload-c-no,
class=LcConfig,doc-group=Error,prefix=Error)
430#ifndef META_DOXYGEN_SHOULD_SKIP_THIS
432 #ifdef PARSE_C_HEADER_TO_META
435 #include "libconfig.h"
532#define LcErrorC_Check(hdl,PROC) \
533 if (unlikely(LcErrorCheckI(PROC))) { \
534 OT_ERROR_LC_2_MQ(hdl); \
535 OT_ERROR_MQ_2_LNG(hdl); \
539#define OT_ERROR_LC_2_MQ(hdl) LcConfigErrorToMQ(MkOBJ(hdl), __func__,__FILE__,__LINE__);
LcConfigC_lc.h - 29 Oct 2024 - aotto1968.
LcSettingC_lc.h - 04 Oct 2024 - aotto1968.
config_overload_lc.h - 02 Oct 2024 - aotto1968
#define LC_EXTERN
static library
LcErrorE
Signals an error and is used as the return value of a function …
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 li...
enum LcErrorTypeE LcErrorTypeE
define the error-source of a LcConfigC …
enum LcErrorE LcErrorE
define the return-code of a method-call …
LC_EXTERN void LcCleanup(void)
cleanup liblcconfig internal memory …
LC_EXTERN void LcSetup(void)
setup liblcconfig internal memory …
void(* LcSetupThreadF)(MK_RT_ARGS_ONLY)
prototype of the runtime-callback …
LC_EXTERN void LcSetupThreadCallback(LcSetupThreadF call)
callback used to register a new runtime …
#define __parser__global__(...)
#define __parser__push__(...)
Struct to represent the data from the LcConfigC …
Struct to represent the data from the LcSettingC …