MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / geterror

Method geterror

tests/osl/UnitTestOSL.h:37–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 inline bool haserror() const { return m_errormessage.size(); }
36
37 std::string geterror(bool erase = true)
38 {
39 std::string s;
40 if (erase)
41 {
42 std::swap(s, m_errormessage);
43 }
44 else
45 {
46 s = m_errormessage;
47 }
48 return s;
49 }
50
51private:
52 std::string m_errormessage;

Callers 5

mainFunction · 0.45
UnitTestMainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
ExecuteOSLShaderFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected