Mercurial > hg > vampy
annotate PyParameterDescriptor.h @ 35:2ba482378038 vampy2
* Fix compile error with VC++. I am totally at a loss to explain
why this should have compiled with any other compiler!
* Update VC project file.
This code does now build with VC++ without HAVE_NUMPY -- I haven't
installed Numpy yet
author | cannam |
---|---|
date | Thu, 24 Sep 2009 08:52:04 +0000 |
parents | c905122f79e7 |
children |
rev | line source |
---|---|
fazekasgy@31 | 1 #ifndef _PYPARAMETERDESCRIPTOR_H_ |
fazekasgy@31 | 2 #define _PYPARAMETERDESCRIPTOR_H_ |
fazekasgy@31 | 3 |
fazekasgy@31 | 4 #include "vamp-sdk/Plugin.h" |
fazekasgy@31 | 5 |
fazekasgy@31 | 6 typedef struct { |
fazekasgy@31 | 7 PyObject_HEAD |
fazekasgy@31 | 8 PyObject *dict; |
fazekasgy@31 | 9 } ParameterDescriptorObject; |
fazekasgy@31 | 10 |
fazekasgy@31 | 11 PyAPI_DATA(PyTypeObject) ParameterDescriptor_Type; |
fazekasgy@31 | 12 |
fazekasgy@31 | 13 #define PyParameterDescriptor_CheckExact(v) ((v)->ob_type == &ParameterDescriptor_Type) |
fazekasgy@31 | 14 #define PyParameterDescriptor_Check(v) PyObject_TypeCheck(v, &ParameterDescriptor_Type) |
fazekasgy@31 | 15 |
fazekasgy@31 | 16 /* PyParameterDescriptor C++ API */ |
fazekasgy@31 | 17 |
fazekasgy@31 | 18 |
fazekasgy@31 | 19 ///fast macro version as per API convention |
fazekasgy@31 | 20 #define PyParameterDescriptor_AS_DICT(v) ((const ParameterDescriptorObject* const) (v))->dict |
fazekasgy@31 | 21 |
cannam@34 | 22 #endif |