|
Subject: |
Re: RTN_SUCCESS macro |
|
From: |
[email protected] (Jeff Hill) |
|
Date: |
Fri, 3 Feb 95 18:32:25 MST |
>
> I am still getting to grips with Epics status values. I have been using
> the RTN_SUCCESS macro and today wanted to find out what it meant. I
> found the following in errMdef.h:
>
> #define RTN_SUCCESS(STATUS) ((STATUS && 1)==0)
>
I dont use this macro however the above will work correctly.
I agree with Nick's more readable alternative:
#define SUCCESS 0
#define RTN_SUCCESS(STATUS) ((STATUS)==SUCCESS)
Jeff
______________________________________________________________________
Jeffrey O. Hill Internet [email protected]
LANL MS H820 Voice 505 665 1831
Los Alamos, NM 87545 USA FAX 505 665 5107
- Navigate by Date:
- Prev:
RTN_SUCCESS macro Nick Rees
- Next:
Re: Documentation on fields in .ascii files Marty Kraimer
- Index:
1994
<1995>
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
- Navigate by Thread:
- Prev:
RTN_SUCCESS macro Nick Rees
- Next:
RTN_SUCCESS Marty Kraimer
- Index:
1994
<1995>
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
|