Permalink
Cannot retrieve contributors at this time
30 lines (22 sloc)
728 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
cpython/Include/complexobject.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Complex number structure */ | |
| #ifndef Py_COMPLEXOBJECT_H | |
| #define Py_COMPLEXOBJECT_H | |
| #ifdef __cplusplus | |
| extern "C" { | |
| #endif | |
| /* Complex object interface */ | |
| PyAPI_DATA(PyTypeObject) PyComplex_Type; | |
| #define PyComplex_Check(op) PyObject_TypeCheck((op), &PyComplex_Type) | |
| #define PyComplex_CheckExact(op) Py_IS_TYPE((op), &PyComplex_Type) | |
| PyAPI_FUNC(PyObject *) PyComplex_FromDoubles(double real, double imag); | |
| PyAPI_FUNC(double) PyComplex_RealAsDouble(PyObject *op); | |
| PyAPI_FUNC(double) PyComplex_ImagAsDouble(PyObject *op); | |
| #ifndef Py_LIMITED_API | |
| # define Py_CPYTHON_COMPLEXOBJECT_H | |
| # include "cpython/complexobject.h" | |
| # undef Py_CPYTHON_COMPLEXOBJECT_H | |
| #endif | |
| #ifdef __cplusplus | |
| } | |
| #endif | |
| #endif /* !Py_COMPLEXOBJECT_H */ |