MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / ErrnoGuard

Method ErrnoGuard

unittests/catch.hpp:7211–7211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7209
7210namespace Catch {
7211 ErrnoGuard::ErrnoGuard():m_oldErrno(errno){}
7212 ErrnoGuard::~ErrnoGuard() { errno = m_oldErrno; }
7213}
7214// end catch_errno_guard.cpp

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected