Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b17d5de

Browse files
committed
changes for complex numbers
1 parent e0dbd59 commit b17d5de

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Include/rename2.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
9292
#define KeyboardInterrupt PyExc_KeyboardInterrupt
9393
#define SystemExit PyExc_SystemExit
9494
#define Floattype PyFloat_Type
95+
#define Complextype PyComplex_Type
9596
#define Inttype PyInt_Type
9697
#define Longtype PyLong_Type
9798
#define Notype PyNothing_Type
@@ -112,6 +113,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
112113
#define Frametype PyFrame_Type
113114
#define Rangetype PyRange_Type
114115
#define floatobject PyFloatObject
116+
#define complexobject PyComplexObject
115117
#define intobject PyIntObject
116118
#define longobject PyLongObject
117119
#define noobject PyNothingObject
@@ -150,6 +152,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
150152
#define END_SAVE Py_END_ALLOW_THREADS
151153
#define callable PyCallable_Check
152154
#define is_floatobject PyFloat_Check
155+
#define is_complexobject PyComplex_Check
153156
#define is_intobject PyInt_Check
154157
#define is_longobject PyLong_Check
155158
#define is_stringobject PyString_Check
@@ -193,6 +196,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
193196
#define getfloatvalue PyFloat_AsDouble
194197
#define GETFLOATVALUE PyFloat_AS_DOUBLE
195198
#define newfloatobject PyFloat_FromDouble
199+
#define newcomplexobject PyComplex_FromCComplex
196200
#define getintvalue PyInt_AsLong
197201
#define GETINTVALUE PyInt_AS_LONG
198202
#define getmaxint PyInt_GetMax

0 commit comments

Comments
 (0)