diff options
Diffstat (limited to 'cpukit/librtemscxx/error.cpp')
-rw-r--r-- | cpukit/librtemscxx/error.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cpukit/librtemscxx/error.cpp b/cpukit/librtemscxx/error.cpp index ba46a8c2a5..8723856ac9 100644 --- a/cpukit/librtemscxx/error.cpp +++ b/cpukit/librtemscxx/error.cpp @@ -56,21 +56,24 @@ namespace rtems void runtime_error_check (const rtems_status_code sc) { - if (sc != RTEMS_SUCCESSFUL) + if (sc != RTEMS_SUCCESSFUL) { throw runtime_error (sc); + } } void runtime_error_check (const rtems_status_code sc, const std::string& what) { - if (sc != RTEMS_SUCCESSFUL) + if (sc != RTEMS_SUCCESSFUL) { throw runtime_error (sc, what); + } } void runtime_error_check (const rtems_status_code sc, const char* what) { - if (sc != RTEMS_SUCCESSFUL) + if (sc != RTEMS_SUCCESSFUL) { throw runtime_error (sc, what); + } } }; |