summaryrefslogtreecommitdiff
path: root/examples/Misc/test_trace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Misc/test_trace.cpp')
-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)