diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-03-15 04:09:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-03-15 04:09:14 +0300 |
commit | ee5dc4d0bf99fe457ece7b37df72dc1cc12e3cd1 (patch) | |
tree | c42b47cc23156ca0e8a03610faf175f9535a5b5d /source/blender/python/api2_2x/Lattice.h | |
parent | a567e43628e780b5cc88f0f1aa73eb3111eab0f5 (diff) |
removed duplicate functionality, macro's and functions existed to check a PyObjects type, now only use macro's
Diffstat (limited to 'source/blender/python/api2_2x/Lattice.h')
-rw-r--r-- | source/blender/python/api2_2x/Lattice.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Lattice.h b/source/blender/python/api2_2x/Lattice.h index 36c69d67215..fb47c2dd2e4 100644 --- a/source/blender/python/api2_2x/Lattice.h +++ b/source/blender/python/api2_2x/Lattice.h @@ -39,6 +39,8 @@ /* The Group PyTypeObject defined in Lattice.c */ extern PyTypeObject Lattice_Type; +#define BPy_Lattice_Check(v) ((v)->ob_type == &Lattice_Type) + /*****************************************************************************/ /* Python BPy_Lattice structure definition: */ /*****************************************************************************/ @@ -54,6 +56,5 @@ typedef struct { PyObject *Lattice_Init( void ); PyObject *Lattice_CreatePyObject( Lattice * lt ); Lattice *Lattice_FromPyObject( PyObject * pyobj ); -int Lattice_CheckPyObject( PyObject * pyobj ); #endif /* EXPP_LATTICE_H */ |