forked from go-python/cpy3
-
Notifications
You must be signed in to change notification settings - Fork 3
/
macro.c
112 lines (91 loc) · 2.38 KB
/
macro.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/*
Unless explicitly stated otherwise all files in this repository are licensed
under the MIT License.
This product includes software developed at Datadog (https://www.datadoghq.com/).
Copyright 2018 Datadog, Inc.
*/
#include "macro.h"
int _go_Py_EnterRecursiveCall(const char *where) {
return Py_EnterRecursiveCall(where);
}
void _go_Py_LeaveRecursiveCall() {
Py_LeaveRecursiveCall();
}
int _go_PyType_Check(PyObject *o) {
return PyType_Check(o);
}
int _go_PyType_CheckExact(PyObject *o) {
return PyType_CheckExact(o);
}
int _go_PyLong_Check(PyObject *p) {
return PyLong_Check(p);
}
int _go_PyLong_CheckExact(PyObject *p) {
return PyLong_CheckExact(p);
}
int _go_PyBool_Check(PyObject *o) {
return PyBool_Check(o);
}
int _go_PyFloat_Check(PyObject *p) {
return PyFloat_Check(p);
}
int _go_PyFloat_CheckExact(PyObject *p) {
return PyFloat_CheckExact(p);
}
int _go_PyComplex_Check(PyObject *p) {
return PyComplex_Check(p);
}
int _go_PyComplex_CheckExact(PyObject *p) {
return PyComplex_CheckExact(p);
}
int _go_PyBytes_Check(PyObject *o) {
return PyBytes_Check(o);
}
int _go_PyBytes_CheckExact(PyObject *o) {
return PyBytes_CheckExact(o);
}
int _go_PyByteArray_Check(PyObject *o) {
return PyByteArray_Check(o);
}
int _go_PyByteArray_CheckExact(PyObject *o) {
return PyByteArray_CheckExact(o);
}
int _go_PyUnicode_Check(PyObject *o) {
return PyUnicode_Check(o);
}
int _go_PyUnicode_CheckExact(PyObject *o) {
return PyUnicode_CheckExact(o);
}
int _go_PyTuple_Check(PyObject *p) {
return PyTuple_Check(p);
}
int _go_PyTuple_CheckExact(PyObject *p) {
return PyTuple_CheckExact(p);
}
int _go_PyList_Check(PyObject *p) {
return PyList_Check(p);
}
int _go_PyList_CheckExact(PyObject *p) {
return PyList_CheckExact(p);
}
int _go_PyDict_Check(PyObject *p) {
return PyDict_Check(p);
}
int _go_PyDict_CheckExact(PyObject *p) {
return PyDict_CheckExact(p);
}
int _go_PyModule_Check(PyObject *p) {
return PyModule_Check(p);
}
int _go_PyModule_CheckExact(PyObject *p) {
return PyModule_CheckExact(p);
}
int _go_PyObject_DelAttr(PyObject *o, PyObject *attr_name) {
return PyObject_DelAttr(o, attr_name);
}
int _go_PyObject_DelAttrString(PyObject *o, const char *attr_name) {
return PyObject_DelAttrString(o, attr_name);
}
int _go_PyObject_TypeCheck(PyObject *o, PyTypeObject *type) {
return PyObject_TypeCheck(o, type);
}