EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  <19951996  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  Index 1994  <19951996  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 
<== Date ==> <== Thread ==>

Subject: RTN_SUCCESS macro
From: [email protected] (Nick Rees)
Date: Fri, 3 Feb 95 15:13:16 HST
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)

Does this mean what I think it means - i.e. !STATUS (or STATUS == 0) ?

or should the && be a bitwise & ?

or is it a C construct to do something more clever? (By opening my mouth
I may be exposing myself as not being a C afficionado.)

Nick

Navigate by Date:
Prev: Documentation on fields in .ascii files Nick Rees
Next: Re: RTN_SUCCESS macro Jeff Hill
Index: 1994  <19951996  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 
Navigate by Thread:
Prev: Re: Documentation on fields in .ascii files Marty Kraimer
Next: Re: RTN_SUCCESS macro Jeff Hill
Index: 1994  <19951996  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 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·