2023-01-05 12:05:51 -04:00
|
|
|
|
2023-02-14 07:54:13 -04:00
|
|
|
/* Unary Functions: */
|
|
|
|
|
2023-01-05 12:05:51 -04:00
|
|
|
#define INTRINSIC_PRINT 1
|
|
|
|
#define INTRINSIC_IMPORT_STAR 2
|
|
|
|
#define INTRINSIC_STOPITERATION_ERROR 3
|
2023-01-06 10:47:57 -04:00
|
|
|
#define INTRINSIC_ASYNC_GEN_WRAP 4
|
|
|
|
#define INTRINSIC_UNARY_POSITIVE 5
|
|
|
|
#define INTRINSIC_LIST_TO_TUPLE 6
|
2023-01-05 12:05:51 -04:00
|
|
|
|
2023-01-06 10:47:57 -04:00
|
|
|
#define MAX_INTRINSIC_1 6
|
2023-01-05 12:05:51 -04:00
|
|
|
|
2023-02-14 07:54:13 -04:00
|
|
|
|
|
|
|
/* Binary Functions: */
|
|
|
|
|
|
|
|
#define INTRINSIC_PREP_RERAISE_STAR 1
|
|
|
|
|
|
|
|
#define MAX_INTRINSIC_2 1
|
|
|
|
|
|
|
|
|
2023-01-05 12:05:51 -04:00
|
|
|
typedef PyObject *(*instrinsic_func1)(PyThreadState* tstate, PyObject *value);
|
2023-02-14 07:54:13 -04:00
|
|
|
typedef PyObject *(*instrinsic_func2)(PyThreadState* tstate, PyObject *value1, PyObject *value2);
|
2023-01-05 12:05:51 -04:00
|
|
|
|
|
|
|
extern instrinsic_func1 _PyIntrinsics_UnaryFunctions[];
|
2023-02-14 07:54:13 -04:00
|
|
|
extern instrinsic_func2 _PyIntrinsics_BinaryFunctions[];
|
|
|
|
|