diff options
author | oci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-04-11 14:56:01 +0000 |
---|---|---|
committer | oci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-04-11 14:56:01 +0000 |
commit | dbec98c35ef5a12c5f449b28db26c5dd420df25e (patch) | |
tree | 01d0fafbab59aea4691b8f91101dc7c92ae8df2d /examples/Misc | |
parent | c52de6b25dcd76d4d7d9f38a8ef7e8c00a8eeb70 (diff) | |
download | ATCD-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.cpp | 28 |
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) |