MCPcopy Create free account
hub / github.com/OpenArkStudio/ARK / TempFile

Method TempFile

test/catch.hpp:13331–13346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13329
13330#if defined(_MSC_VER)
13331TempFile::TempFile()
13332{
13333 if (tmpnam_s(m_buffer))
13334 {
13335 CATCH_RUNTIME_ERROR("Could not get a temp filename");
13336 }
13337 if (fopen_s(&m_file, m_buffer, "w"))
13338 {
13339 char buffer[100];
13340 if (strerror_s(buffer, errno))
13341 {
13342 CATCH_RUNTIME_ERROR("Could not translate errno to a string");
13343 }
13344 CATCH_RUNTIME_ERROR("Could not open the temp file: '" << m_buffer << "' because: " << buffer);
13345 }
13346}
13347#else
13348TempFile::TempFile()
13349{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected