aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/tests/CppTestHarness/TestLauncher.cpp
blob: 4397822308d5ca5f8e5ef1dc50cb1c7f6bf5c1d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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;
}

}