aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/tests/CppTestHarness/TestLauncher.cpp
diff options
context:
space:
mode:
authordan miller2007-10-19 05:15:33 +0000
committerdan miller2007-10-19 05:15:33 +0000
commit79eca25c945a535a7a0325999034bae17da92412 (patch)
tree40ff433d94859d629aac933d5ec73b382f62ba1a /libraries/ode-0.9/tests/CppTestHarness/TestLauncher.cpp
parentadding ode source to /libraries (diff)
downloadopensim-SC-79eca25c945a535a7a0325999034bae17da92412.zip
opensim-SC-79eca25c945a535a7a0325999034bae17da92412.tar.gz
opensim-SC-79eca25c945a535a7a0325999034bae17da92412.tar.bz2
opensim-SC-79eca25c945a535a7a0325999034bae17da92412.tar.xz
resubmitting ode
Diffstat (limited to 'libraries/ode-0.9/tests/CppTestHarness/TestLauncher.cpp')
-rw-r--r--libraries/ode-0.9/tests/CppTestHarness/TestLauncher.cpp39
1 files changed, 39 insertions, 0 deletions
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 @@
1#include "TestLauncher.h"
2
3namespace CppTestHarness
4{
5
6namespace
7{
8 TestLauncher* s_listHead;
9}
10
11TestLauncher** TestLauncher::GetHeadAddr()
12{
13 static bool initialized = false;
14 if (!initialized)
15 {
16 s_listHead = 0;
17 initialized = true;
18 }
19
20 return &s_listHead;
21}
22
23TestLauncher::TestLauncher(TestLauncher** listHead)
24 : m_next(*listHead)
25{
26 *listHead = this;
27}
28
29TestLauncher::~TestLauncher()
30{
31}
32
33TestLauncher const* TestLauncher::GetNext() const
34{
35 return m_next;
36}
37
38}
39