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