On 4/7/2014 11:08 PM, Alan W. Irwin wrote:
> I have just had a further idea. For comprehensive testing situations
> it might be good to have the option to call feenableexcept (the C
> library function that you used to help debug x29c.c that should be
> available for c99 according to its Linux man page) from within the
> PLplot library (say as the result of plinit).  If you agree (a) that
> idea would work and (b) it would be useful, would you be willing to
> implement it in C for the case when the PLPLOT_ENABLE_FLOAT_EXCEPT C
> macro is #defined?  If so, I would be willing to do the rest on the
> CMake side (create a CMake option for this and propagate it to the
> corresponding C macro for the compilation of the source file where you
> have implemented the feenableexcept call).

I have tested the idea and it works. I'm not sure about the utility 
though. Based on my tests it already caught the only error in the 
examples that it is going to catch. After the git transition I can 
create a branch that will catch floating point exceptions and you can 
merge it (or not) into the master branch based on your feeling about 
it's utility.

best,
-Hazen


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to