Experimental Physics and Industrial Control System
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
<2009>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- 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
<2009>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024