theConfig 10.0
Loading...
Searching...
No Matches
LibLcConfig_py.c
Go to the documentation of this file.
1
9/* LABEL-NO */
10
11#include "LibLcConfig_py.h"
12
13#define OT_SETUP_hdl MkRtSetup_NULL; \
14 MK_OBJ hdl = MK_ERROR_PRINT;
15#define OT_SETUP_hdl_static __attribute__((unused)) MK_RT mkrt = MkRT; \
16 __attribute__((unused)) MK_ERR hdl = &MkERROR;
17
18#define LcSetupTmpl()
19#define LcCleanupTmpl()
20
21// MARK_D ################################################################
22// -----------------------------------------------------------------------
23// documentation order
63// --------------------------------------------------------------------------------
64
65// BEGIN-EnumDef - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
66
67// UNDEF
68
69// END-EnumDef - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
70
76
77// BEGIN-DOC - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
78
79// doc-key: LcConfig,EnumFunc,sco,func
80#define ConfigFormatE_FromInt_doc "LcConfigFormatE ConfigFormatE_FromInt(value:int32)"
81#define ConfigOptionsEF_FromInt_doc "LcConfigOptionsEF ConfigOptionsEF_FromInt(value:int32)"
82#define ConfigTypeE_FromInt_doc "LcConfigTypeE ConfigTypeE_FromInt(value:int32)"
83#define ErrorE_FromInt_doc "LcErrorE ErrorE_FromInt(value:int32)"
84#define ErrorTypeE_FromInt_doc "LcErrorTypeE ErrorTypeE_FromInt(value:int32)"
85
86// doc-key: LcConfig,EnumFunc,sm_,func
87#define ConfigFormatE_ToInt_doc "int32 ConfigFormatE_ToInt(value:LcConfigFormatE)"
88#define ConfigFormatE_ToString_doc "string ConfigFormatE_ToString(value:LcConfigFormatE)"
89#define ConfigOptionsEF_ToInt_doc "int32 ConfigOptionsEF_ToInt(value:LcConfigOptionsEF)"
90#define ConfigOptionsEF_ToString_doc "string ConfigOptionsEF_ToString(value:LcConfigOptionsEF)"
91#define ConfigTypeE_ToInt_doc "int32 ConfigTypeE_ToInt(value:LcConfigTypeE)"
92#define ConfigTypeE_ToString_doc "string ConfigTypeE_ToString(value:LcConfigTypeE)"
93#define ErrorE_ToInt_doc "int32 ErrorE_ToInt(value:LcErrorE)"
94#define ErrorE_ToString_doc "string ErrorE_ToString(value:LcErrorE)"
95#define ErrorTypeE_ToInt_doc "int32 ErrorTypeE_ToInt(value:LcErrorTypeE)"
96#define ErrorTypeE_ToString_doc "string ErrorTypeE_ToString(value:LcErrorTypeE)"
97
98// doc-key: LcConfig,Setup,sm_,func
99#define Cleanup_doc "Cleanup()"
100#define Setup_doc "Setup()"
101
102// END-DOC - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
103
104#define Debug_doc "Debug(prefix:str, ?obj:object?"
105
106/*****************************************************************************/
107/* */
108/* Check */
109/* */
110/*****************************************************************************/
111
113
119
120// BEGIN-LcConfig - created by 'py_MqC.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
121
125
126// doc-key: LcConfig,LcConfig-Enum,sco
127
129static OT_ProcRet NS(LcConfig_ConfigFormatE_FromInt) (OtClass_ARGS) {
132 MK_I32 value = 0;
135 enum LcConfigFormatE value_out;
137 OT_retObj_SET(OT_NEW_Lc_enum_OBJ(ConfigFormatE,value_out));
138 goto end;
139 error:
141 end:
143}
144
146static OT_ProcRet NS(LcConfig_ConfigOptionsEF_FromInt) (OtClass_ARGS) {
149 MK_I32 value = 0;
152 enum LcConfigOptionsEF value_out;
154 OT_retObj_SET(OT_NEW_Lc_enum_OBJ(ConfigOptionsEF,value_out));
155 goto end;
156 error:
158 end:
160}
161
163static OT_ProcRet NS(LcConfig_ConfigTypeE_FromInt) (OtClass_ARGS) {
166 MK_I32 value = 0;
169 enum LcConfigTypeE value_out;
171 OT_retObj_SET(OT_NEW_Lc_enum_OBJ(ConfigTypeE,value_out));
172 goto end;
173 error:
175 end:
177}
178
180static OT_ProcRet NS(LcConfig_ErrorE_FromInt) (OtClass_ARGS) {
183 MK_I32 value = 0;
186 enum LcErrorE value_out;
188 OT_retObj_SET(OT_NEW_Lc_enum_OBJ(ErrorE,value_out));
189 goto end;
190 error:
192 end:
194}
195
197static OT_ProcRet NS(LcConfig_ErrorTypeE_FromInt) (OtClass_ARGS) {
200 MK_I32 value = 0;
203 enum LcErrorTypeE value_out;
205 OT_retObj_SET(OT_NEW_Lc_enum_OBJ(ErrorTypeE,value_out));
206 goto end;
207 error:
209 end:
211}
212
213// doc-key: LcConfig,LcConfig-Enum,sm_
214
216static OT_ProcRet NS(LcConfig_ConfigFormatE_ToInt) (OtClass_ARGS) {
219 enum LcConfigFormatE value = 0;
223 goto end;
224 error:
226 end:
228}
229
231static OT_ProcRet NS(LcConfig_ConfigFormatE_ToString) (OtClass_ARGS) {
234 enum LcConfigFormatE value = 0;
238 goto end;
239 error:
241 end:
243}
244
246static OT_ProcRet NS(LcConfig_ConfigOptionsEF_ToInt) (OtClass_ARGS) {
249 enum LcConfigOptionsEF value = 0;
253 goto end;
254 error:
256 end:
258}
259
261static OT_ProcRet NS(LcConfig_ConfigOptionsEF_ToString) (OtClass_ARGS) {
264 enum LcConfigOptionsEF value = 0;
268 goto end;
269 error:
271 end:
273}
274
276static OT_ProcRet NS(LcConfig_ConfigTypeE_ToInt) (OtClass_ARGS) {
279 enum LcConfigTypeE value = 0;
283 goto end;
284 error:
286 end:
288}
289
291static OT_ProcRet NS(LcConfig_ConfigTypeE_ToString) (OtClass_ARGS) {
294 enum LcConfigTypeE value = 0;
298 goto end;
299 error:
301 end:
303}
304
306static OT_ProcRet NS(LcConfig_ErrorE_ToInt) (OtClass_ARGS) {
309 enum LcErrorE value = 0;
313 goto end;
314 error:
316 end:
318}
319
321static OT_ProcRet NS(LcConfig_ErrorE_ToString) (OtClass_ARGS) {
324 enum LcErrorE value = 0;
328 goto end;
329 error:
331 end:
333}
334
336static OT_ProcRet NS(LcConfig_ErrorTypeE_ToInt) (OtClass_ARGS) {
339 enum LcErrorTypeE value = 0;
343 goto end;
344 error:
346 end:
348}
349
351static OT_ProcRet NS(LcConfig_ErrorTypeE_ToString) (OtClass_ARGS) {
354 enum LcErrorTypeE value = 0;
358 goto end;
359 error:
361 end:
363}
364
366// LcConfig_Enum_PY_API
367
371
372// doc-key: LcConfig,LcConfig-Setup,sm_
373
375static OT_ProcRet NS(LcConfig_Cleanup) (OtClass_ARGS) {
379 LcCleanupTmpl ();
381 goto end;
382 error:
384 end:
386}
387
389static OT_ProcRet NS(LcConfig_Setup) (OtClass_ARGS) {
393 LcSetupTmpl ();
395 goto end;
396 error:
398 end:
400}
401
403// LcConfig_Setup_PY_API
404
405// END-LcConfig - created by 'py_MqC.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
406
407// vim: Marker(t)
413
414static PyMethodDef NS(sLcConfigMethods)[] = {
415
416 // BEGIN-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
417
418 // doc-key: LcConfig,EnumFunc,sco
419 { "ConfigFormatE_FromInt" , (PyCFunction) NS(LcConfig_ConfigFormatE_FromInt) , METH_O , ConfigFormatE_FromInt_doc },
420 { "ConfigOptionsEF_FromInt" , (PyCFunction) NS(LcConfig_ConfigOptionsEF_FromInt) , METH_O , ConfigOptionsEF_FromInt_doc },
421 { "ConfigTypeE_FromInt" , (PyCFunction) NS(LcConfig_ConfigTypeE_FromInt) , METH_O , ConfigTypeE_FromInt_doc },
422 { "ErrorE_FromInt" , (PyCFunction) NS(LcConfig_ErrorE_FromInt) , METH_O , ErrorE_FromInt_doc },
423 { "ErrorTypeE_FromInt" , (PyCFunction) NS(LcConfig_ErrorTypeE_FromInt) , METH_O , ErrorTypeE_FromInt_doc },
424
425 // doc-key: LcConfig,EnumFunc,sm_
426 { "ConfigFormatE_ToInt" , (PyCFunction) NS(LcConfig_ConfigFormatE_ToInt) , METH_O , ConfigFormatE_ToInt_doc },
427 { "ConfigFormatE_ToString" , (PyCFunction) NS(LcConfig_ConfigFormatE_ToString) , METH_O , ConfigFormatE_ToString_doc },
428 { "ConfigOptionsEF_ToInt" , (PyCFunction) NS(LcConfig_ConfigOptionsEF_ToInt) , METH_O , ConfigOptionsEF_ToInt_doc },
429 { "ConfigOptionsEF_ToString" , (PyCFunction) NS(LcConfig_ConfigOptionsEF_ToString) , METH_O , ConfigOptionsEF_ToString_doc },
430 { "ConfigTypeE_ToInt" , (PyCFunction) NS(LcConfig_ConfigTypeE_ToInt) , METH_O , ConfigTypeE_ToInt_doc },
431 { "ConfigTypeE_ToString" , (PyCFunction) NS(LcConfig_ConfigTypeE_ToString) , METH_O , ConfigTypeE_ToString_doc },
432 { "ErrorE_ToInt" , (PyCFunction) NS(LcConfig_ErrorE_ToInt) , METH_O , ErrorE_ToInt_doc },
433 { "ErrorE_ToString" , (PyCFunction) NS(LcConfig_ErrorE_ToString) , METH_O , ErrorE_ToString_doc },
434 { "ErrorTypeE_ToInt" , (PyCFunction) NS(LcConfig_ErrorTypeE_ToInt) , METH_O , ErrorTypeE_ToInt_doc },
435 { "ErrorTypeE_ToString" , (PyCFunction) NS(LcConfig_ErrorTypeE_ToString) , METH_O , ErrorTypeE_ToString_doc },
436
437 // doc-key: LcConfig,Setup,sm_
438 { "Cleanup" , (PyCFunction) NS(LcConfig_Cleanup) , METH_NOARGS , Cleanup_doc },
439 { "Setup" , (PyCFunction) NS(LcConfig_Setup) , METH_NOARGS , Setup_doc },
440
441 // END-CLASS - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
442
443 // BEGIN-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
444
445 // → no data
446
447 // END-OBJ - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
448
449 {NULL, NULL, 0, NULL} /* Sentinel */
450};
451
452// MARK_P
458
460// MODULE
461
462MkThreadLocal LcConfigThreadStateS LC(LcConfigThreadState) = {0} ;
463
464typedef struct {
466} NS(sLcConfigStateS);
467
468MK_UNUSED static inline NS(sLcConfigStateS)*
469NS(sLcConfigGetState)(PyObject *module)
470{
471 void *state = PyModule_GetState(module);
472 assert(state != NULL);
473 return (NS(sLcConfigStateS)*)state;
474}
475
476static int
477NS(sLcConfigTraverse)(PyObject *module, visitproc visit, void *arg)
478{
479 // BEGIN-EnumTraverse - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
480
481 Py_VISIT(LcConfigFormatE_lngO);
482 Py_VISIT(LcConfigOptionsEF_lngO);
483 Py_VISIT(LcConfigTypeE_lngO);
484 Py_VISIT(LcErrorE_lngO);
485 Py_VISIT(LcErrorTypeE_lngO);
486
487 // END-EnumTraverse - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
488 // BEGIN-ClassTraverse - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
489
490 Py_VISIT(LcConfigC_MK_NULL);
491 Py_VISIT(LcSettingC_MK_NULL);
492
493 // END-ClassTraverse - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
494 return 0;
495}
496
497static int
498NS(sLcConfigClear)(PyObject *module)
499{
500 // BEGIN-EnumClear - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
501
502 Py_CLEAR(LcConfigFormatE_lngO);
503 Py_CLEAR(LcConfigOptionsEF_lngO);
504 Py_CLEAR(LcConfigTypeE_lngO);
505 Py_CLEAR(LcErrorE_lngO);
506 Py_CLEAR(LcErrorTypeE_lngO);
507
508 // END-EnumClear - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
509 // BEGIN-ClassClear - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
510
511 Py_CLEAR(LcConfigC_MK_NULL);
512 Py_CLEAR(LcSettingC_MK_NULL);
513
514 // END-ClassClear - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
515 return 0;
516}
517
518static void
519NS(sLcConfigFree)(void *module)
520{
521 NS(sLcConfigClear)((PyObject *)module);
522}
523
524static int
525NS(sLcConfigExec)(PyObject *module)
526{
527 int ret;
528 LcSetup();
530
531 NS(sLcConfigStateS) *state = NS(sLcConfigGetState)(module);
532 state->mkrt = MK_RT_PTR;
533
534 PyObject *mainM = PyImport_AddModule("__main__");
535
536 PyObject *mkM = PyImport_ImportModule("pymkkernel");
537 LngErrorCheckN(mkM);
538 ret = PyObject_SetAttrString(mainM,"pymkkernel",mkM);
539 OtErrorCheckLng(ret);
540 Py_CLEAR(mkM);
541
542 // BEGIN-CLASS-DEF - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
543
544 OtErrorCheckLng( NS(pLcConfigC_Init) (MK_RT_CALL module) ) ;
545 OtErrorCheckLng( NS(pLcSettingC_Init) (MK_RT_CALL module) ) ;
546
547 // END-CLASS-DEF - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
548
549 // init NULL object… on EVERY thread
550 //NS(inMain) = false;
551
552 // init ENUM
553 MK_STR enumCode =
554 "from enum import IntEnum, IntFlag\n"
555
556 // BEGIN-EnumCode - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
557
558 "class LcConfigFormatE(IntEnum):\n"
559 " DEFAULT = 0\n"
560 " HEX = 1\n"
561
562 "class LcConfigOptionsEF(IntFlag):\n"
563 " NONE = 0\n"
564 " AUTOCONVERT = 1\n"
565 " SEMICOLON_SEPARATORS = 2\n"
566 " COLON_ASSIGNMENT_FOR_GROUPS = 4\n"
567 " COLON_ASSIGNMENT_FOR_NON_GROUPS = 8\n"
568 " OPEN_BRACE_ON_SEPARATE_LINE = 16\n"
569 " ALLOW_SCIENTIFIC_NOTATION = 32\n"
570 " FSYNC = 64\n"
571 " ALLOW_OVERRIDES = 128\n"
572
573 "class LcConfigTypeE(IntEnum):\n"
574 " NONE = 0\n"
575 " GROUP = 1\n"
576 " INT = 2\n"
577 " INT64 = 3\n"
578 " FLOAT = 4\n"
579 " STRING = 5\n"
580 " BOOL = 6\n"
581 " ARRAY = 7\n"
582 " LIST = 8\n"
583
584 "class LcErrorE(IntEnum):\n"
585 " FALSE = 0\n"
586 " TRUE = 1\n"
587
588 "class LcErrorTypeE(IntEnum):\n"
589 " NONE = 0\n"
590 " FILE_IO = 1\n"
591 " PARSE = 2\n"
592
593 // END-EnumCode - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
594 ;
595
596 PyObject *myD, *mainD, *tmpO;
597 mainD = PyModule_GetDict(mainM);
598 myD = PyModule_GetDict(module);
599 tmpO = PyRun_String(enumCode, Py_file_input, mainD, myD);
600 LngErrorCheckN(tmpO);
601 Py_CLEAR(tmpO);
602
603 // BEGIN-EnumSet - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
604
605 LcConfigFormatE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"LcConfigFormatE"));
606 LcConfigOptionsEF_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"LcConfigOptionsEF"));
607 LcConfigTypeE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"LcConfigTypeE"));
608 LcErrorE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"LcErrorE"));
609 LcErrorTypeE_lngO = (PyTypeObject*) Py_NewRef(PyDict_GetItemString(myD,"LcErrorTypeE"));
610
611 // END-EnumSet - created by 'py_MqS.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
612
613 return 0;
614error:
615 return -1;
616}
617
618MK_UNUSED static PyModuleDef_Slot NS(sLcConfigDefSlots)[] = {
619 {Py_mod_exec, NS(sLcConfigExec)},
620 {Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},
621 {0, NULL}
622};
623
624static PyModuleDef NS(sLcConfigDef) = {
625 PyModuleDef_HEAD_INIT,
626 .m_name = "pylcconfig",
627 .m_doc = "python language binding for 'theConfig'",
628 .m_size = sizeof(NS(sLcConfigStateS)),
629 .m_methods = NS(sLcConfigMethods),
630 .m_slots = NS(sLcConfigDefSlots),
631 .m_traverse = NS(sLcConfigTraverse), // garbage collection
632 .m_clear = NS(sLcConfigClear),
633 .m_free = NS(sLcConfigFree),
634};
635
636// MARK_P
642
643PyMODINIT_FUNC
645{
646 // Multi-phase initialization
647 return PyModuleDef_Init(&NS(sLcConfigDef));
648}
649
650// vim: nowrap
#define ConfigOptionsEF_FromInt_doc
#define ConfigFormatE_ToInt_doc
#define ConfigFormatE_ToString_doc
PyMODINIT_FUNC LibLcConfig(void)
#define ConfigOptionsEF_ToString_doc
#define ErrorTypeE_FromInt_doc
#define ConfigOptionsEF_ToInt_doc
#define ErrorE_ToString_doc
#define ConfigFormatE_FromInt_doc
#define OT_SETUP_hdl_static
#define ErrorE_FromInt_doc
#define ErrorE_ToInt_doc
#define ConfigTypeE_FromInt_doc
#define ErrorTypeE_ToInt_doc
#define LcSetupTmpl()
#define LcCleanupTmpl()
#define Cleanup_doc
#define Setup_doc
#define ConfigTypeE_ToInt_doc
#define ErrorTypeE_ToString_doc
#define ConfigTypeE_ToString_doc
tag: nhi1-release-250425
#define LcConfigC_MK_NULL
#define LcErrorE_lngO
#define LcConfigFormatE_lngO
#define LcConfigOptionsEF_lngO
#define LcSettingC_MK_NULL
#define LcConfigTypeE_lngO
#define NS(n)
#define LC(n)
#define LcErrorTypeE_lngO
#define OT_NEW_Lc_enum_OBJ(typ, val)
#define LngErrorCheckN(PROC)
#define OT_SETUP_NOARG(d)
#define OT_SETUP_ONEARG(d)
#define OtErrorCheckLng(PROC)
#define OT_CHECK_NI4(val)
#define OT_retObj_SET_Error
#define OT_CHECK_REQUIRED(val)
#define OT_retObj_SET_None
#define OT_retObj_SET_I32(nat)
#define OT_retObj_RETURN
#define OT_retObj_SET_STR(nat)
#define OT_retObj_SET(val)
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
#define OT_ProcRet
#define OtClass_ARGS
static MK_I32 LcConfigTypeE_ToInt(enum LcConfigTypeE value)
return the LcConfigTypeE as integer …
Definition LcEnum_lc.h:110
MK_STRN LcErrorE_ToString(enum LcErrorE value)
return the LcErrorE as string …
static MK_I32 LcErrorE_ToInt(enum LcErrorE value)
return the LcErrorE as integer …
Definition LcEnum_lc.h:205
LcErrorE
Signals an error and is used as the return value of a function …
Definition LcEnum_lc.h:188
static MK_I32 LcErrorTypeE_ToInt(enum LcErrorTypeE value)
return the LcErrorTypeE as integer …
Definition LcEnum_lc.h:246
enum MkErrorE LcConfigFormatE_FromInt(MK_I32 const value, enum LcConfigFormatE *value_out)
return the LcConfigFormatE from integer …
static MK_I32 LcConfigOptionsEF_ToInt(enum LcConfigOptionsEF value)
return the LcConfigOptionsEF as integer …
Definition LcEnum_lc.h:166
LcConfigFormatE
set the format of a LcSettingC …
Definition LcEnum_lc.h:30
LcConfigOptionsEF
define the configuration-option of a LcConfigC …
Definition LcEnum_lc.h:134
static MK_I32 LcConfigFormatE_ToInt(enum LcConfigFormatE value)
return the LcConfigFormatE as integer …
Definition LcEnum_lc.h:55
MK_STRN LcConfigTypeE_ToString(enum LcConfigTypeE value)
return the LcConfigTypeE as string …
enum MkErrorE LcErrorTypeE_FromInt(MK_I32 const value, enum LcErrorTypeE *value_out)
return the LcErrorTypeE from integer …
MK_STRN LcErrorTypeE_ToString(enum LcErrorTypeE value)
return the LcErrorTypeE as string …
LcErrorTypeE
error types
Definition LcEnum_lc.h:228
MK_STRN LcConfigOptionsEF_ToString(enum LcConfigOptionsEF value)
return the LcConfigOptionsEF as string …
LcConfigTypeE
define the data-type of a LcSettingC …
Definition LcEnum_lc.h:78
enum MkErrorE LcConfigOptionsEF_FromInt(MK_I32 const value, enum LcConfigOptionsEF *value_out)
return the LcConfigOptionsEF from integer …
enum MkErrorE LcErrorE_FromInt(MK_I32 const value, enum LcErrorE *value_out)
return the LcErrorE from integer …
enum MkErrorE LcConfigTypeE_FromInt(MK_I32 const value, enum LcConfigTypeE *value_out)
return the LcConfigTypeE from integer …
MK_STRN LcConfigFormatE_ToString(enum LcConfigFormatE value)
return the LcConfigFormatE as string …
void LcSetup(void)
setup pylcconfig internal memory …
#define MK_ERROR_FORMAT
#define MK_UNUSED
MK_STRB * MK_STR
signed int MK_I32
#define MkThreadLocal
#define MK_RT_PTR
#define MK_RT_CALL
#define MkRtSetup_NULL
tag: nhi1-release-250425
#define OT_CHECK_ENUM(ename, val)