source: rtems/cpukit/rtems/inline/rtems/rtems/status.inl @ 484a769

4.104.114.95
Last change on this file since 484a769 was 484a769, checked in by Ralf Corsepius <ralf.corsepius@…>, on 09/04/08 at 17:46:39

Convert to "bool".

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @file rtems/rtems/status.inl
3 *
4 *  This include file contains the implementations of the inlined
5 *  routines for the status package.
6 */
7
8/*  COPYRIGHT (c) 1989-2008.
9 *  On-Line Applications Research Corporation (OAR).
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.com/license/LICENSE.
14 *
15 *  $Id$
16 */
17
18#ifndef _RTEMS_RTEMS_STATUS_H
19# error "Never use <rtems/rtems/status.inl> directly; include <rtems/rtems/status.h> instead."
20#endif
21
22#ifndef _RTEMS_RTEMS_STATUS_INL
23#define _RTEMS_RTEMS_STATUS_INL
24
25/**
26 *  @addtogroup ClassicStatus
27 *  @{
28 */
29
30/**
31 *  @brief tems_is_status_successful
32 *
33 *  This function returns TRUE if the status code is equal to RTEMS_SUCCESSFUL,
34 *  and FALSE otherwise.
35 */
36RTEMS_INLINE_ROUTINE bool rtems_is_status_successful(
37  rtems_status_code code
38)
39{
40  return (code == RTEMS_SUCCESSFUL);
41}
42
43/**
44 *  @brief tems_are_statuses_equal
45 *
46 *  This function returns TRUE if the status code1 is equal to code2,
47 *  and FALSE otherwise.
48 */
49RTEMS_INLINE_ROUTINE bool rtems_are_statuses_equal(
50  rtems_status_code code1,
51  rtems_status_code code2
52)
53{
54   return (code1 == code2);
55}
56
57/**@}*/
58
59#endif
60/* end of include file */
Note: See TracBrowser for help on using the repository browser.