From 8d44c2450c2c64d323e2f23f71d766cd58be18ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Fri, 24 Apr 2020 20:58:29 +0200 Subject: [PATCH] Add some explanatory comments to ErrnoGuard --- 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 + ErrnoGuard(); ~ErrnoGuard(); private: