--- parser3/src/include/pa_pool.h 2003/01/28 10:23:31 1.86.2.14 +++ parser3/src/include/pa_pool.h 2003/01/28 12:11:49 1.86.2.16 @@ -9,7 +9,7 @@ #ifndef PA_POOL_H #define PA_POOL_H -static const char* IDENT_POOL_H="$Date: 2003/01/28 10:23:31 $"; +static const char* IDENT_POOL_H="$Date: 2003/01/28 12:11:49 $"; #include "pa_config_includes.h" @@ -219,6 +219,7 @@ public: */ #define override +#define rethrow throw void *operator new(size_t size) { return pa_malloc(size); @@ -319,7 +320,9 @@ public: } }; -#define DECLARE_OBJECT_PTR(name) typedef object_ptr name##Ptr; +#define DECLARE_OBJECT_PTR(name) \ + typedef object_ptr name##Ptr; \ + const object_ptr name##PtrZero(0); /// TEMPLATE CLASS smart_ptr, stolen from stl:auto_ptr template