comparison native/PyRealTime.h @ 121:c45f957ef4d9

Add NumPy include path to setup; remove PyAPI stuff from non-PyAPI calls
author Chris Cannam
date Tue, 23 Jun 2015 10:43:08 +0100
parents 2370b942cd32
children
comparison
equal deleted inserted replaced
120:7c0c11577819 121:c45f957ef4d9
44 typedef struct { 44 typedef struct {
45 PyObject_HEAD 45 PyObject_HEAD
46 Vamp::RealTime *rt; 46 Vamp::RealTime *rt;
47 } RealTimeObject; 47 } RealTimeObject;
48 48
49 PyAPI_DATA(PyTypeObject) RealTime_Type; 49 extern PyTypeObject RealTime_Type;
50 50
51 #define PyRealTime_Check(v) PyObject_TypeCheck(v, &RealTime_Type) 51 #define PyRealTime_Check(v) PyObject_TypeCheck(v, &RealTime_Type)
52 #define PyRealTime_AS_REALTIME(v) ((const RealTimeObject* const) (v))->rt 52 #define PyRealTime_AS_REALTIME(v) ((const RealTimeObject* const) (v))->rt
53 53
54 PyAPI_FUNC(PyObject *) 54 extern PyObject *
55 PyRealTime_FromRealTime(const Vamp::RealTime&); 55 PyRealTime_FromRealTime(const Vamp::RealTime&);
56 56
57 PyAPI_FUNC(const Vamp::RealTime*) 57 extern const Vamp::RealTime *
58 PyRealTime_AsRealTime (PyObject *self); 58 PyRealTime_AsRealTime (PyObject *self);
59 59
60 #endif 60 #endif