EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: [Merge] ~epics-core/epics-base/+git/Com:iocsherr into epics-base:7.0
From: Keenan Lang via Core-talk <[email protected]>
To: mdavidsaver <[email protected]>
Date: Thu, 23 May 2019 22:02:12 -0000
>@Keenan, This occurred to me as well. The API isn't trivial though. Do you care about handling the struct iocshCmdDef* yourself? Are you doing argument type casting?

I already handle the iocshCmdDef myself. iocshFindCommand returns the pointer to the command definition and I use the arg[]->type to determine casts and generate the necessary iocshArgBuf. All that would be needed would be a function like

> int checkError(iocshCmdDef* cmd, iocshArgBuf* args)

It would set the error scope, then do a try/catch of '(*cmd)(args)' if it either catches an error or there was an error reported in the scope, return the correct error code, otherwise return 0.
-- 
https://code.launchpad.net/~epics-core/epics-base/+git/Com/+merge/366876
Your team EPICS Core Developers is subscribed to branch epics-base:7.0.

References:
[Merge] ~epics-core/epics-base/+git/Com:iocsherr into epics-base:7.0 mdavidsaver via Core-talk

Navigate by Date:
Prev: Re: [Merge] ~info-martin-konrad/epics-base:clean-up-msi into epics-base:3.15 Martin Konrad via Core-talk
Next: Re: [Merge] ~info-martin-konrad/epics-base:clean-up-msi into epics-base:3.15 Ben Franksen via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: [Merge] ~epics-core/epics-base/+git/Com:iocsherr into epics-base:7.0 Andrew Johnson via Core-talk
Next: Re: [Merge] ~epics-core/epics-base/+git/Com:iocsherr into epics-base:7.0 Bruce Hill via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
ANJ, 24 May 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·