summaryrefslogtreecommitdiff
path: root/examples/Misc
diff options
context:
space:
mode:
authoroci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-04-11 14:56:01 +0000
committeroci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-04-11 14:56:01 +0000
commitdbec98c35ef5a12c5f449b28db26c5dd420df25e (patch)
tree01d0fafbab59aea4691b8f91101dc7c92ae8df2d /examples/Misc
parentc52de6b25dcd76d4d7d9f38a8ef7e8c00a8eeb70 (diff)
downloadATCD-dbec98c35ef5a12c5f449b28db26c5dd420df25e.tar.gz
ChangeLogTag: Wed Apr 11 09:44:32 2001 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'examples/Misc')
-rw-r--r--examples/Misc/test_trace.cpp28
1 files changed, 16 insertions, 12 deletions
diff --git a/examples/Misc/test_trace.cpp b/examples/Misc/test_trace.cpp
index 0d34d0d6ab3..4a97bcd8872 100644
--- a/examples/Misc/test_trace.cpp
+++ b/examples/Misc/test_trace.cpp
@@ -34,18 +34,7 @@ public:
{
}
- int recursive (size_t depth)
- {
- ACE_Trace _ ("int recursive (size_t depth)",
- __LINE__,
- __FILE__);
-
- if (depth > 0)
- return recursive (depth - 1);
- else
- return 0;
- // Destructor of <ACE_Trace> automatically called.
- }
+ int recursive (size_t depth);
virtual int svc (void)
{
@@ -57,6 +46,21 @@ private:
// Depth of the recursion.
};
+
+int
+My_Task::recursive (size_t depth)
+{
+ ACE_Trace _ ("int recursive (size_t depth)",
+ __LINE__,
+ __FILE__);
+
+ if (depth > 0)
+ return recursive (depth - 1);
+ else
+ return 0;
+ // Destructor of <ACE_Trace> automatically called.
+}
+
extern "C"
void
exithook (void)