Mercurial > hg > vampy
comparison PyFeatureSet.h @ 31:4f1894c7591b vampy2
Created Vampy2 branch
author | fazekasgy |
---|---|
date | Sun, 20 Sep 2009 17:31:20 +0000 |
parents | |
children | a8231788216c |
comparison
equal
deleted
inserted
replaced
28:5139bf30f208 | 31:4f1894c7591b |
---|---|
1 #ifndef _PYFEATURESET_H_ | |
2 #define _PYFEATURESET_H_ | |
3 | |
4 #include <Python.h> | |
5 | |
6 typedef struct { | |
7 PyDictObject dict; | |
8 int state; | |
9 } FeatureSetObject; | |
10 | |
11 PyAPI_DATA(PyTypeObject) FeatureSet_Type; | |
12 | |
13 #define PyFeatureSet_CheckExact(v) ((v)->ob_type == &FeatureSet_Type) | |
14 #define PyFeatureSet_Check(v) PyObject_TypeCheck(v, &FeatureSet_Type) | |
15 // #define PyFeatureSet_CheckExact(v) ((v)->ob_type == &PyDict_Type) | |
16 // #define PyFeatureSet_Check(v) PyObject_TypeCheck(v, &PyDict_Type) | |
17 | |
18 // #define PyFeature_AS_DICT(v) ((const FeatureObject* const) (v))->dict | |
19 | |
20 void initFeatureSetType(void); | |
21 | |
22 #endif |