Mercurial > hg > vampy
view PyFeatureSet.h @ 36:03b10edc5f78 vampy2
* Update VC++ project file to build with NumPy -- appears to work.
author | cannam |
---|---|
date | Thu, 24 Sep 2009 09:35:08 +0000 |
parents | c905122f79e7 |
children |
line wrap: on
line source
#ifndef _PYFEATURESET_H_ #define _PYFEATURESET_H_ #include <Python.h> typedef struct { PyDictObject dict; } FeatureSetObject; PyAPI_DATA(PyTypeObject) FeatureSet_Type; #define PyFeatureSet_CheckExact(v) ((v)->ob_type == &FeatureSet_Type) #define PyFeatureSet_Check(v) PyObject_TypeCheck(v, &FeatureSet_Type) // #define PyFeatureSet_CheckExact(v) ((v)->ob_type == &PyDict_Type) // #define PyFeatureSet_Check(v) PyObject_TypeCheck(v, &PyDict_Type) // #define PyFeature_AS_DICT(v) ((const FeatureObject* const) (v))->dict void initFeatureSetType(void); #endif