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
12
/* LABEL-NO */
13
14
/* variables defined - example from PYTHON
15
16
#define OT_LNG_NULL_IS(obj) (obj == Py_None)
17
18
#define OT_LNG_OBJ_CLASS_IS(obj,cls) PyObject_TypeCheck(obj,cls)
19
#define OT_OBJ_TO_CLASS(str) NS(str)
20
21
#define OT_LNG_OBJ_ENUM_IS(obj,enm) PyObject_TypeCheck(obj,enm)
22
#define OT_LNG_ENUM_NAME(enm) OT_LNG_NAME_FROM_CLASS(enm)
23
#define OT_ENUM_TO_INT(o,e) o
24
25
#define OT_LNG_ARRAY_IS(obj) PyObject_TypeCheck(obj,&PyList_Type)
26
27
#define OT_LNG_STRN_PRE(str,obj) PyObject *__##str=NULL; \
28
MkErrorCheck(PyObj_AsUTF8(obj,&__##str)); \
29
MK_STRN str=PyBytes_AsString(__##str)
30
31
#define OT_LNG_STRN_POST(str,obj) Py_CLEAR(__##str)
32
33
#define OT_LNG_LONG_IS(obj) (CHECK_LONG(obj) || CHECK_STRING(obj)) // from "high"
34
#define OT_LNG_INT_IS(obj) (CHECK_LONG(obj) || CHECK_STRING(obj)) // from "high"
35
36
#include "tmpl/misc_check_lng.h"
37
38
*/
39
40
#if defined HEADER
41
42
// BEGIN-Class-define - created by 'c_Class.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
43
44
#define OT_CHECK_VAL(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3ValueC_lngO), Sq3ValueC_TT, nullB)
45
#define OT_CHECK_VALN(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3ValueC_lngO), Sq3ValueC_TT, nullB)
46
#define OT_CHECK_STMT(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3StmtC_lngO), Sq3StmtC_TT, nullB)
47
#define OT_CHECK_STMTN(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3StmtC_lngO), Sq3StmtC_TT, nullB)
48
#define OT_CHECK_BLOB(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3BlobC_lngO), Sq3BlobC_TT, nullB)
49
#define OT_CHECK_BLOBN(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3BlobC_lngO), Sq3BlobC_TT, nullB)
50
#define OT_CHECK_FILE(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3FileC_lngO), Sq3FileC_TT, nullB)
51
#define OT_CHECK_FILEN(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3FileC_lngO), Sq3FileC_TT, nullB)
52
#define OT_CHECK_LITE(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3LiteC_lngO), Sq3LiteC_TT, nullB)
53
#define OT_CHECK_LITEN(val,nullB) OT_CHECK_CLASS(val, OT_OBJ_TO_CLASS(Sq3LiteC_lngO), Sq3LiteC_TT, nullB)
54
55
// END-Class-define - created by 'c_Class.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
56
62
63
#else
// !HEADER
64
65
/*****************************************************************************/
66
67
#endif
Generated on Fri Apr 25 2025 22:58:28 for theSq3Lite by
1.12.0