MCPcopy Create free account
hub / github.com/KhronosGroup/glslang / WriteFile

Function WriteFile

gtests/TestFixture.cpp:165–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165bool WriteFile(const std::string& path, const std::string& contents)
166{
167 std::ofstream fstream(path, std::ios::out);
168 if (!fstream) return false;
169 fstream << contents;
170 fstream.flush();
171 return true;
172}
173
174std::string GetSuffix(const std::string& name)
175{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected