diff options
Diffstat (limited to 'c/src/librtems++/include/rtems++/rtemsStatusCode.h')
-rw-r--r-- | c/src/librtems++/include/rtems++/rtemsStatusCode.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/c/src/librtems++/include/rtems++/rtemsStatusCode.h b/c/src/librtems++/include/rtems++/rtemsStatusCode.h index 90da637cb1..d7f600536c 100644 --- a/c/src/librtems++/include/rtems++/rtemsStatusCode.h +++ b/c/src/librtems++/include/rtems++/rtemsStatusCode.h @@ -6,7 +6,7 @@ COPYRIGHT (c) 1997 Objective Design Systems Ltd Pty (ODS) All rights reserved (R) Objective Design Systems Ltd Pty - + The license and distribution terms for this file may be found in the file LICENSE in this distribution or at http://www.rtems.com/license/LICENSE. @@ -14,7 +14,7 @@ ------------------------------------------------------------------------ rtemsStatusCode controls and manages status codes from the RTEMS kernel. - + ------------------------------------------------------------------------ */ @@ -30,15 +30,15 @@ class rtemsStatusCode { public: - + rtemsStatusCode() { last_status = RTEMS_NOT_CONFIGURED; } - + const bool successful() { return last_status == RTEMS_SUCCESSFUL; } const bool unsuccessful() { return last_status != RTEMS_SUCCESSFUL; } - + // return the last status code const rtems_status_code last_status_code() { return last_status; } - + // return the last status as a string const char *last_status_string(); @@ -47,9 +47,9 @@ public: protected: const rtems_status_code set_status_code(const rtems_status_code status) { return (last_status = status); } - + private: - + // public at the moment, this might change rtems_status_code last_status; }; |