Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/test_setup.cpp
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
return sys_ExecutablePathname().Parent()/".."/"data"; | return sys_ExecutablePathname().Parent()/".."/"data"; | ||||
} | } | ||||
// Script-based testing setup: | // Script-based testing setup: | ||||
namespace | namespace | ||||
{ | { | ||||
void script_TS_FAIL(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), const std::wstring& msg) | void script_TS_FAIL(ScriptInterface::CmptPrivate* UNUSED(pCmptPrivate), const std::wstring& msg) | ||||
{ | { | ||||
TS_FAIL(utf8_from_wstring(msg).c_str()); | TS_FAIL(utf8_from_wstring(msg).c_str()); | ||||
} | } | ||||
} | } | ||||
void ScriptTestSetup(const ScriptInterface& scriptinterface) | void ScriptTestSetup(const ScriptInterface& scriptinterface) | ||||
{ | { | ||||
scriptinterface.RegisterFunction<void, std::wstring, script_TS_FAIL>("TS_FAIL"); | scriptinterface.RegisterFunction<void, std::wstring, script_TS_FAIL>("TS_FAIL"); | ||||
Show All 10 Lines |
Wildfire Games · Phabricator