diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-04-12 19:06:50 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-04-12 19:06:50 +0000 |
commit | b9e19e076662ae5743b9c81eb238fe11204f6dbd (patch) | |
tree | 2a29279adf20a2b8291f56f341695db07e861e98 /libdimensionxx/error.cpp | |
parent | 8a4f9e902cf64f97ee2f15fa3940a7cf183a27b7 (diff) | |
download | dimension-b9e19e076662ae5743b9c81eb238fe11204f6dbd.tar.xz |
Add some comments.
Diffstat (limited to 'libdimensionxx/error.cpp')
-rw-r--r-- | libdimensionxx/error.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libdimensionxx/error.cpp b/libdimensionxx/error.cpp index 948a8c0..3d7dfa0 100644 --- a/libdimensionxx/error.cpp +++ b/libdimensionxx/error.cpp @@ -24,18 +24,21 @@ namespace Dimension { + // Get the resilience, thread-safely, with dmnsn_get_resilience(). Severity resilience() { return static_cast<Severity>(dmnsn_get_resilience()); } + // Set the resilience, thread-safely, with dmnsn_set_resilience(). void resilience(Severity resilience) { dmnsn_set_resilience(static_cast<dmnsn_severity>(resilience)); } + // Dimension_Error constructor Dimension_Error::Dimension_Error(const std::string& str) : std::runtime_error(str) { } } |