Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: Re: aSub and C++
From: Andrew Johnson <anj@aps.anl.gov>
To: tech-talk@aps.anl.gov
Cc: Simon Hoyle <simon.hoyle@csiro.au>
Date: Mon, 16 Nov 2009 09:48:12 -0600
Hi Simon,

On Sunday 15 November 2009 19:18:08 Simon Hoyle wrote:
>
> I'm attempting to use some C++ code in the subroutine of an
> aSub record in Epics base 3.14.10.
> There is a problem compiling the subroutine due to the occurrence
> of the C++ reserved word 'not' in the aSubRecord header file.
...
> Is there a way around this ?

Since you're not trying to compile the record code itself using C++ the 
simplest way is probably to do this in your subroutine source file:
    #define not no_t
    #include "aSubRecord.h"
and make sure you use prec->no_t if you ever need to access that field in your 
code.

- Andrew
-- 
The best FOSS code is written to be read by other humans -- Harald Welte


References:
aSub and C++ Simon Hoyle

Navigate by Date:
Prev: Re: aSub and C++ Ian Gillingham
Next: sscan, asyn and mutexes [SEC=UNCLASSIFIED] LYNCH, Damien
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: Re: aSub and C++ Ian Gillingham
Next: sscan, asyn and mutexes [SEC=UNCLASSIFIED] LYNCH, Damien
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·