MCPcopy Create free account
hub / github.com/OpenMW/openmw / getAsString

Function getAsString

apps/components_tests/lua/testutilpackage.cpp:31–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 }
30
31 std::string getAsString(sol::state_view& lua, std::string luaCode)
32 {
33 return LuaUtil::toString(lua.safe_script("return " + luaCode));
34 }
35
36 TEST_F(LuaUtilPackageTest, Vector2)
37 {

Callers 1

TEST_FFunction · 0.85

Calls 2

safe_scriptMethod · 0.80
toStringFunction · 0.50

Tested by

no test coverage detected