--- parser3/src/include/pa_memory.h 2003/03/04 12:38:15 1.1.2.5 +++ parser3/src/include/pa_memory.h 2003/03/06 12:58:32 1.1.2.7 @@ -9,7 +9,7 @@ #ifndef PA_MEMORY_H #define PA_MEMORY_H -static const char* IDENT_MEMORY_H="$Date: 2003/03/04 12:38:15 $"; +static const char* IDENT_MEMORY_H="$Date: 2003/03/06 12:58:32 $"; // include @@ -158,6 +158,9 @@ public: } }; +#define DECLARE_SMART_PTR(name) \ + typedef smart_ptr name##Ptr + // defines #define override @@ -220,6 +223,7 @@ public: delete this; } } + unsigned long references() { return freferences; } }; DECLARE_OBJECT_PTR(PA_Object);