AlphaFold3 / weight /_dep /Catch2 /include /internal /catch_errno_guard.cpp
wuxing0105's picture
Add files using upload-large-folder tool
0bd2a62 verified
Raw
History Blame Contribute Delete
385 Bytes
/*
* Created by Martin on 06/03/2017.
*
* Distributed under the Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#include "catch_errno_guard.h"
#include <cerrno>
namespace Catch {
ErrnoGuard::ErrnoGuard():m_oldErrno(errno){}
ErrnoGuard::~ErrnoGuard() { errno = m_oldErrno; }
}