Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:18:04

0001 #ifndef Py_INTERNAL_ABSTRACT_H
0002 #define Py_INTERNAL_ABSTRACT_H
0003 #ifdef __cplusplus
0004 extern "C" {
0005 #endif
0006 
0007 #ifndef Py_BUILD_CORE
0008 #  error "this header requires Py_BUILD_CORE define"
0009 #endif
0010 
0011 // Fast inlined version of PyIndex_Check()
0012 static inline int
0013 _PyIndex_Check(PyObject *obj)
0014 {
0015     PyNumberMethods *tp_as_number = Py_TYPE(obj)->tp_as_number;
0016     return (tp_as_number != NULL && tp_as_number->nb_index != NULL);
0017 }
0018 
0019 PyObject *_PyNumber_PowerNoMod(PyObject *lhs, PyObject *rhs);
0020 PyObject *_PyNumber_InPlacePowerNoMod(PyObject *lhs, PyObject *rhs);
0021 
0022 #ifdef __cplusplus
0023 }
0024 #endif
0025 #endif /* !Py_INTERNAL_ABSTRACT_H */