summaryrefslogtreecommitdiff
path: root/ace/Dump_T.h
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-26 18:46:21 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-26 18:46:21 +0000
commitb5adfd4ffd24551632be96077fe9f519e10bfff7 (patch)
treec0b39d4473db1aaf1cd357b18174bc08d5cc5a2a /ace/Dump_T.h
parent5f1275d9dae3b389ae185f5f80eacf50578a3bb7 (diff)
downloadATCD-b5adfd4ffd24551632be96077fe9f519e10bfff7.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Dump_T.h')
-rw-r--r--ace/Dump_T.h13
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 */