diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-23 00:06:13 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-23 00:06:13 +0300 |
commit | 2a8da8606fc169aa9929e9a1550c8e29c466880b (patch) | |
tree | e29d23bc8f08f5f5232f319649e7df2d58ac72d8 /python/rpmte-py.h | |
parent | 39d79f91420ba7d9527e04d00b4b0dc2d6cad9ff (diff) | |
download | rpm-2a8da8606fc169aa9929e9a1550c8e29c466880b.tar.gz |
Add type checking macros for all rpm python type objects
Diffstat (limited to 'python/rpmte-py.h')
-rw-r--r-- | python/rpmte-py.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/rpmte-py.h b/python/rpmte-py.h index e6bfda951..0a273ed1d 100644 --- a/python/rpmte-py.h +++ b/python/rpmte-py.h @@ -7,6 +7,8 @@ typedef struct rpmteObject_s rpmteObject; extern PyTypeObject rpmte_Type; +#define rpmteObject_Check(v) ((v)->ob_type == &rpmte_Type) + PyObject * rpmte_Wrap(rpmte te); #endif |