Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-04-24 20:58:29 +0200
committerMartin Hořeňovský2020-04-24 21:04:54 +0200
commit8d44c2450c2c64d323e2f23f71d766cd58be18ae (patch)
tree52c89ae5db7f018e72123a41f70803904fb43ab0
parent7c9755456592e718a72d96d203b6ff775c03e14a (diff)
downloadcatch3-8d44c2450c2c64d323e2f23f71d766cd58be18ae.tar.gz
Add some explanatory comments to ErrnoGuard
-rw-r--r--src/catch2/internal/catch_errno_guard.hpp4
1 files changed, 4 insertions, 0 deletions
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: