Mercurial > hg > vampy
comparison PyParameterDescriptor.h @ 31:4f1894c7591b vampy2
Created Vampy2 branch
| author | fazekasgy |
|---|---|
| date | Sun, 20 Sep 2009 17:31:20 +0000 |
| parents | |
| children | c905122f79e7 |
comparison
equal
deleted
inserted
replaced
| 28:5139bf30f208 | 31:4f1894c7591b |
|---|---|
| 1 #ifndef _PYPARAMETERDESCRIPTOR_H_ | |
| 2 #define _PYPARAMETERDESCRIPTOR_H_ | |
| 3 | |
| 4 #include "vamp-sdk/Plugin.h" | |
| 5 | |
| 6 typedef struct { | |
| 7 PyObject_HEAD | |
| 8 PyObject *dict; | |
| 9 } ParameterDescriptorObject; | |
| 10 | |
| 11 PyAPI_DATA(PyTypeObject) ParameterDescriptor_Type; | |
| 12 | |
| 13 #define PyParameterDescriptor_CheckExact(v) ((v)->ob_type == &ParameterDescriptor_Type) | |
| 14 #define PyParameterDescriptor_Check(v) PyObject_TypeCheck(v, &ParameterDescriptor_Type) | |
| 15 | |
| 16 /* PyParameterDescriptor C++ API */ | |
| 17 | |
| 18 | |
| 19 ///fast macro version as per API convention | |
| 20 #define PyParameterDescriptor_AS_DICT(v) ((const ParameterDescriptorObject* const) (v))->dict | |
| 21 | |
| 22 #endif |
