mirror of
https://github.com/python/cpython.git
synced 2026-01-11 01:40:06 +00:00
Split Include/floatobject.h into sub-files: add Include/cpython/floatobject.h and Include/internal/pycore_floatobject.h.
12 lines
348 B
C
12 lines
348 B
C
#ifndef Py_CPYTHON_FLOATOBJECT_H
|
|
# error "this header file must not be included directly"
|
|
#endif
|
|
|
|
typedef struct {
|
|
PyObject_HEAD
|
|
double ob_fval;
|
|
} PyFloatObject;
|
|
|
|
// Macro version of PyFloat_AsDouble() trading safety for speed.
|
|
// It doesn't check if op is a double object.
|
|
#define PyFloat_AS_DOUBLE(op) (((PyFloatObject *)(op))->ob_fval)
|