Mercurial > hg > vampy
comparison PyFeature.h @ 79:f5c028376bf9
Some old changes that, I think, probably did not help anything
author | Chris Cannam |
---|---|
date | Wed, 12 Aug 2015 15:25:04 +0100 |
parents | 27bab3a16c9a |
children |
comparison
equal
deleted
inserted
replaced
78:e101ff25d757 | 79:f5c028376bf9 |
---|---|
39 PyObject *dict; | 39 PyObject *dict; |
40 // Vamp::Plugin::Feature *feature; | 40 // Vamp::Plugin::Feature *feature; |
41 /// pointer to type interface required: PyTypeInterface ti; | 41 /// pointer to type interface required: PyTypeInterface ti; |
42 } FeatureObject; | 42 } FeatureObject; |
43 | 43 |
44 PyAPI_DATA(PyTypeObject) Feature_Type; | 44 extern PyTypeObject Feature_Type; |
45 | 45 |
46 #define PyFeature_CheckExact(v) ((v)->ob_type == &Feature_Type) | 46 #define PyFeature_CheckExact(v) ((v)->ob_type == &Feature_Type) |
47 #define PyFeature_Check(v) PyObject_TypeCheck(v, &Feature_Type) | 47 #define PyFeature_Check(v) PyObject_TypeCheck(v, &Feature_Type) |
48 | 48 |
49 ///fast macro version as per API convention | 49 ///fast macro version as per API convention |