Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
allendowney
GitHub Repository: allendowney/cpython
Path: blob/main/Include/internal/pycore_intrinsics.h
12 views
1
// Auto-generated by Tools/build/generate_opcode_h.py from Lib/opcode.py
2
3
/* Unary Functions: */
4
#define INTRINSIC_1_INVALID 0
5
#define INTRINSIC_PRINT 1
6
#define INTRINSIC_IMPORT_STAR 2
7
#define INTRINSIC_STOPITERATION_ERROR 3
8
#define INTRINSIC_ASYNC_GEN_WRAP 4
9
#define INTRINSIC_UNARY_POSITIVE 5
10
#define INTRINSIC_LIST_TO_TUPLE 6
11
#define INTRINSIC_TYPEVAR 7
12
#define INTRINSIC_PARAMSPEC 8
13
#define INTRINSIC_TYPEVARTUPLE 9
14
#define INTRINSIC_SUBSCRIPT_GENERIC 10
15
#define INTRINSIC_TYPEALIAS 11
16
17
#define MAX_INTRINSIC_1 11
18
19
20
/* Binary Functions: */
21
#define INTRINSIC_2_INVALID 0
22
#define INTRINSIC_PREP_RERAISE_STAR 1
23
#define INTRINSIC_TYPEVAR_WITH_BOUND 2
24
#define INTRINSIC_TYPEVAR_WITH_CONSTRAINTS 3
25
#define INTRINSIC_SET_FUNCTION_TYPE_PARAMS 4
26
27
#define MAX_INTRINSIC_2 4
28
29
typedef PyObject *(*instrinsic_func1)(PyThreadState* tstate, PyObject *value);
30
typedef PyObject *(*instrinsic_func2)(PyThreadState* tstate, PyObject *value1, PyObject *value2);
31
extern const instrinsic_func1 _PyIntrinsics_UnaryFunctions[];
32
extern const instrinsic_func2 _PyIntrinsics_BinaryFunctions[];
33
34