theConfig 10.0
Loading...
Searching...
No Matches
lc_misc_check_lng.h
Go to the documentation of this file.
1
9/* LABEL-NO */
10
11/* variables defined - example from PYTHON
12
13#define OT_LNG_NULL_IS(obj) (obj == Py_None)
14
15#define OT_LNG_OBJ_CLASS_IS(obj,cls) PyObject_TypeCheck(obj,cls)
16#define OT_OBJ_TO_CLASS(str) NS(str)
17
18#define OT_LNG_OBJ_ENUM_IS(obj,enm) PyObject_TypeCheck(obj,enm)
19#define OT_LNG_ENUM_NAME(enm) OT_LNG_NAME_FROM_CLASS(enm)
20#define OT_ENUM_TO_I32(o,e) o
21
22#define OT_LNG_ARRAY_IS(obj) PyObject_TypeCheck(obj,&PyList_Type)
23
24#define OT_LNG_STRN_PRE(str,obj) PyObject *__##str=NULL; \
25 MkErrorCheck(PyObj_AsUTF8(obj,&__##str)); \
26 MK_STRN str=PyBytes_AsString(__##str)
27
28#define OT_LNG_STRN_POST(str,obj) Py_CLEAR(__##str)
29
30#define OT_LNG_LONG_IS(obj) (CHECK_LONG(obj) || CHECK_STRING(obj)) // from "high"
31#define OT_LNG_I32_IS(obj) (CHECK_LONG(obj) || CHECK_STRING(obj)) // from "high"
32
33#include "tmpl/misc_check_lng.h"
34
35*/
36
37#if defined HEADER
38
39// BEGIN-Class-define - created by 'c_Class.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
40
41#define OT_CHECK_CFG(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(LcConfigC_lngO), LcConfigC_TT, nullB)
42#define OT_CHECK_CFGN(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(LcConfigC_lngO), LcConfigC_TT, nullB)
43#define OT_CHECK_CFS(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(LcSettingC_lngO), LcSettingC_TT, nullB)
44#define OT_CHECK_CFSN(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(LcSettingC_lngO), LcSettingC_TT, nullB)
45
46// END-Class-define - created by 'c_Class.tcl -i NHI1_HOME/theConfig/c/gen/c_lcconfig.meta' - DO NOT change
47
53
54#else // !HEADER
55
56/*****************************************************************************/
57
58#endif