view PyFeatureSet.h @ 31:4f1894c7591b vampy2

Created Vampy2 branch
author fazekasgy
date Sun, 20 Sep 2009 17:31:20 +0000
parents
children a8231788216c
line wrap: on
line source
#ifndef _PYFEATURESET_H_
#define _PYFEATURESET_H_

#include <Python.h>

typedef struct {
    PyDictObject dict;
    int state;
} 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