catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Add some explanatory comments to ErrnoGuard
- Commit
8d44c2450c2c64d323e2f23f71d766cd58be18ae- Author
- Martin Hořeňovský ·
- Parents
7c9755456592
Changes
src/catch2/internal/catch_errno_guard.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/catch2/internal/catch_errno_guard.hpp b/src/catch2/internal/catch_errno_guard.hpp index b1d1fc1c..810ca99f 100644 --- a/src/catch2/internal/catch_errno_guard.hpp +++ b/src/catch2/internal/catch_errno_guard.hpp @@ -9,8 +9,12 @@ namespace Catch { + //! Simple RAII class that stores the value of `errno` + //! at construction and restores it at destruction. class ErrnoGuard { public: + // Keep these outlined to avoid dragging in macros from <cerrno> + ErrnoGuard(); ~ErrnoGuard(); private: