view 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
line wrap: on
line source
#ifndef _PYPARAMETERDESCRIPTOR_H_
#define _PYPARAMETERDESCRIPTOR_H_

#include "vamp-sdk/Plugin.h"

typedef struct {
		PyObject_HEAD
		PyObject *dict;
} ParameterDescriptorObject; 

PyAPI_DATA(PyTypeObject) ParameterDescriptor_Type;

#define PyParameterDescriptor_CheckExact(v)	((v)->ob_type == &ParameterDescriptor_Type)
#define PyParameterDescriptor_Check(v) PyObject_TypeCheck(v, &ParameterDescriptor_Type)

/*			  		 PyParameterDescriptor C++ API  	  		  	  */


///fast macro version as per API convention
#define PyParameterDescriptor_AS_DICT(v) ((const ParameterDescriptorObject* const) (v))->dict

#endif