mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Add some explanatory comments to ErrnoGuard
This commit is contained in:
parent
7c97554565
commit
8d44c2450c
@ -9,8 +9,12 @@
|
|||||||
|
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
|
|
||||||
|
//! Simple RAII class that stores the value of `errno`
|
||||||
|
//! at construction and restores it at destruction.
|
||||||
class ErrnoGuard {
|
class ErrnoGuard {
|
||||||
public:
|
public:
|
||||||
|
// Keep these outlined to avoid dragging in macros from <cerrno>
|
||||||
|
|
||||||
ErrnoGuard();
|
ErrnoGuard();
|
||||||
~ErrnoGuard();
|
~ErrnoGuard();
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user