diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-26 18:46:21 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-26 18:46:21 +0000 |
commit | 5615e0d0275c5997a9bd1d84428c2953d2104f79 (patch) | |
tree | c0b39d4473db1aaf1cd357b18174bc08d5cc5a2a /ace/Dump_T.h | |
parent | d7dcf652235387b069e6cf766e52d5171ec33822 (diff) | |
download | ATCD-5615e0d0275c5997a9bd1d84428c2953d2104f79.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Dump_T.h')
-rw-r--r-- | ace/Dump_T.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ace/Dump_T.h b/ace/Dump_T.h index d2ee0a62886..dd32b5623cf 100644 --- a/ace/Dump_T.h +++ b/ace/Dump_T.h @@ -50,6 +50,19 @@ private: // Pointer to <this> of <class Concrete>. }; +// Some useful macros for conditionally compiling this feature... +#if defined (ACE_NDEBUG) +#define ACE_REGISTER_OBJECT(CLASS) +#define ACE_REMOVE_OBJECT +#else +#define ACE_REGISTER_OBJECT(CLASS) \ + ACE_ODB::instance ()->register_object \ + (new ACE_Dumpable_Adapter<CLASS> (this)); +#define ACE_REMOVE_OBJECT \ + ACE_ODB::instance ()->remove_object \ + ((void *) this); +#endif /* ACE_NDEBUG */ + #if defined (ACE_TEMPLATES_REQUIRE_SOURCE) #include "ace/Dump_T.cpp" #endif /* ACE_TEMPLATES_REQUIRE_SOURCE */ |