mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 05:16:10 +01:00
Add some explanatory comments to ErrnoGuard
This commit is contained in:
parent
7c97554565
commit
8d44c2450c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user