// PyHead.h -- // $Id: PyHead.h 1230 2007-03-09 15:58:53Z jcw $ // This is part of MetaKit, see http://www.equi4.com/metakit.html // Copyright (C) 1999-2004 Gordon McMillan and Jean-Claude Wippler. // // Common object header class #if !defined INCLUDE_PYHEAD_H #define INCLUDE_PYHEAD_H #include class PyHead: public PyObject { public: PyHead(PyTypeObject &t) { #ifdef Py_TRACE_REFS _ob_next = 0; _ob_prev = 0; _Py_AddToAllObjects(this, 0); #endif ob_refcnt = 1; ob_type = &t; } }; #endif