Mercurial > hg > vampy
view PyRealTime.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 _PYREALTIME_H_ #define _PYREALTIME_H_ #include "vamp-sdk/Plugin.h" typedef struct { PyObject_HEAD Vamp::RealTime *rt; } RealTimeObject; PyAPI_DATA(PyTypeObject) RealTime_Type; #define PyRealTime_CheckExact(v) ((v)->ob_type == &RealTime_Type) #define PyRealTime_Check(v) PyObject_TypeCheck(v, &RealTime_Type) ///fast macro version as per API convention #define PyRealTime_AS_REALTIME(v) ((const RealTimeObject* const) (v))->rt /* PyRealTime C++ API */ PyAPI_FUNC(PyObject *) PyRealTime_FromRealTime(Vamp::RealTime&); PyAPI_FUNC(const Vamp::RealTime*) PyRealTime_AsRealTime (PyObject *self); #endif