MCPcopy Create free account
hub / github.com/Pierre-Terdiman/PEEL / GetCurrentTest

Method GetCurrentTest

PEEL/Physics/Script.cpp:61–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61AutomatedTest* AutomatedTests::GetCurrentTest() const
62{
63 if(!mTests.GetNbEntries())
64 return null;
65
66/* if(mIndex>=mTests.GetNbEntries())
67 return null;
68
69 return (PhysicsTest*)mTests.GetEntry(mIndex);*/
70
71 const udword N = sizeof(AutomatedTest)/sizeof(udword);
72 const udword NbTests = mTests.GetNbEntries()/N;
73 if(mIndex>=NbTests)
74 return null;
75
76 AutomatedTest* AT = (AutomatedTest*)mTests.GetEntries();
77 return AT + mIndex;
78}
79
80AutomatedTest* AutomatedTests::SelectNextTest()
81{

Callers 2

RenderCallbackFunction · 0.80
gButtonCallbackFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected