[GRASS-dev] Re: [GRASS GIS] #869: Compile libs with -fexception
Glynn Clements
glynn at gclements.plus.com
Thu Jan 14 16:57:50 EST 2010
Radim Blazek wrote:
> Thanks for the suggestion. The title of
> http://trac.osgeo.org/qgis/ticket/1878 is however "remove
> setjmp/longjmp in grass plugin&provider and use exceptions instead" so
> the intention was to remove setjmp/longjmp.
> I don't know exactly if there were problems with setjmp/longjmp or it
> was just attempt to improve the code. Using exceptions is certainly
> better.
Whichever approach is used, any code calling G_fatal_error() is
entitled to assume that it won't be called again, so it doesn't need
to perform clean-up.
If you leave the error handler via longjmp() or an exception, then
re-enter the GRASS libraries, all bets are off.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list