From 79eca25c945a535a7a0325999034bae17da92412 Mon Sep 17 00:00:00 2001 From: dan miller Date: Fri, 19 Oct 2007 05:15:33 +0000 Subject: resubmitting ode --- .../ode-0.9/tests/CppTestHarness/TestLauncher.cpp | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 libraries/ode-0.9/tests/CppTestHarness/TestLauncher.cpp (limited to 'libraries/ode-0.9/tests/CppTestHarness/TestLauncher.cpp') diff --git a/libraries/ode-0.9/tests/CppTestHarness/TestLauncher.cpp b/libraries/ode-0.9/tests/CppTestHarness/TestLauncher.cpp new file mode 100644 index 0000000..4397822 --- /dev/null +++ b/libraries/ode-0.9/tests/CppTestHarness/TestLauncher.cpp @@ -0,0 +1,39 @@ +#include "TestLauncher.h" + +namespace CppTestHarness +{ + +namespace +{ + TestLauncher* s_listHead; +} + +TestLauncher** TestLauncher::GetHeadAddr() +{ + static bool initialized = false; + if (!initialized) + { + s_listHead = 0; + initialized = true; + } + + return &s_listHead; +} + +TestLauncher::TestLauncher(TestLauncher** listHead) + : m_next(*listHead) +{ + *listHead = this; +} + +TestLauncher::~TestLauncher() +{ +} + +TestLauncher const* TestLauncher::GetNext() const +{ + return m_next; +} + +} + -- cgit v1.1