diff options
Diffstat (limited to 'Tools/modulator/Templates/object_head')
-rw-r--r-- | Tools/modulator/Templates/object_head | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Tools/modulator/Templates/object_head b/Tools/modulator/Templates/object_head index bf69a51..9e6fa5e 100644 --- a/Tools/modulator/Templates/object_head +++ b/Tools/modulator/Templates/object_head @@ -1,12 +1,13 @@ + /* Declarations for objects of type $name$ */ typedef struct { - OB_HEAD + PyObject_HEAD /* XXXX Add your own stuff here */ } $abbrev$object; -staticforward typeobject $Abbrev$type; +staticforward PyTypeObject $Abbrev$type; + -#define is_$abbrev$object(v) ((v)->ob_type == &$Abbrev$type) /* ---------------------------------------------------------------- */ |