theSq3Lite
10.0
NHI1
-
theKernel
-
theLink
-
theConfig
-
theSq3Lite
-
theCompiler
-
theBrain
-
theGuard
-
theLib
-
theATL
c
-
tcl
-
atl
-
cs
-
py
-
rb
-
jv
-
cc
Loading...
Searching...
No Matches
tmpl
sq3_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_INT(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_INT_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/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
40
41
#define OT_CHECK_VAL(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3ValueC_lngO), Sq3ValueC_TT, nullB)
42
#define OT_CHECK_VALN(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3ValueC_lngO), Sq3ValueC_TT, nullB)
43
#define OT_CHECK_STMT(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3StmtC_lngO), Sq3StmtC_TT, nullB)
44
#define OT_CHECK_STMTN(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3StmtC_lngO), Sq3StmtC_TT, nullB)
45
#define OT_CHECK_BLOB(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3BlobC_lngO), Sq3BlobC_TT, nullB)
46
#define OT_CHECK_BLOBN(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3BlobC_lngO), Sq3BlobC_TT, nullB)
47
#define OT_CHECK_FILE(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3FileC_lngO), Sq3FileC_TT, nullB)
48
#define OT_CHECK_FILEN(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3FileC_lngO), Sq3FileC_TT, nullB)
49
#define OT_CHECK_LITE(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3LiteC_lngO), Sq3LiteC_TT, nullB)
50
#define OT_CHECK_LITEN(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3LiteC_lngO), Sq3LiteC_TT, nullB)
51
52
// END-Class-define - created by 'c_Class.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
53
59
60
#else
// !HEADER
61
62
/*****************************************************************************/
63
64
#endif
Generated on Thu May 29 2025 13:14:55 for theSq3Lite by
1.12.0